diff --git a/htdocs/core/boxes/box_activity.php b/htdocs/core/boxes/box_activity.php index d26f4f8fdfc..253b0b4800c 100644 --- a/htdocs/core/boxes/box_activity.php +++ b/htdocs/core/boxes/box_activity.php @@ -22,6 +22,9 @@ include_once(DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php"); +/** + * Class to manage the box of customer activity (invoice, order, proposal) + */ class box_activity extends ModeleBoxes { var $boxcode="activity"; @@ -36,7 +39,7 @@ class box_activity extends ModeleBoxes var $info_box_contents = array(); /** - * \brief Constructeur de la classe + * Constructor */ function box_activity() { @@ -50,10 +53,12 @@ class box_activity extends ModeleBoxes } /** - * \brief Charge les donnees en memoire pour affichage ulterieur - * \param $max Nombre maximum d'enregistrements a charger + * Charge les donnees en memoire pour affichage ulterieur + * + * @param int $max Maximum number of records to load + * @return void */ - function loadBox() + function loadBox($max=5) { global $conf, $user, $langs, $db; @@ -219,6 +224,13 @@ class box_activity extends ModeleBoxes $this->info_box_contents[$i][5] = array('td' => 'align="right"', 'text' => ""); } + /** + * Method to show box + * + * @param array $head Array with properties of box title + * @param array $contents Array with properties of box lines + * @return void + */ function showBox($head = null, $contents = null) { parent::showBox($this->info_box_head, $this->info_box_contents);