diff --git a/htdocs/core/boxes/box_actions.php b/htdocs/core/boxes/box_actions.php index 267d238d5cefbccf95eecda20882379bd79f43f5..68bb550ea0915dd76080480d15d112c4e01f3da6 100644 --- a/htdocs/core/boxes/box_actions.php +++ b/htdocs/core/boxes/box_actions.php @@ -25,8 +25,11 @@ include_once(DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php"); - -class box_actions extends ModeleBoxes { +/** + * Class to manage the box to show actions + */ +class box_actions extends ModeleBoxes +{ var $boxcode="lastactions"; var $boximg="object_action"; diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php index b38c37494fa2a903044ceb2cc0dcf350718774f1..63441ff7866051f739b7fb05665500d8caaa657a 100644 --- a/htdocs/core/boxes/modules_boxes.php +++ b/htdocs/core/boxes/modules_boxes.php @@ -33,17 +33,21 @@ class ModeleBoxes // Can't be abtract as it is instanciated to build "empty" var $error=''; var $max=5; - /* - * \brief Constructeur + + /** + * Constructor + * + * @param DoliDB $db Database hanlder */ - function ModeleBoxes($DB) + function ModeleBoxes($db) { - $this->db=$DB; + $this->db=$db; } - /** - * \brief Renvoi le dernier message d'erreur de creation de facture + * Return last error message + * + * @return string Error message */ function error() { @@ -52,7 +56,10 @@ class ModeleBoxes // Can't be abtract as it is instanciated to build "empty" /** - * \brief Charge une ligne boxe depuis son rowid + * Load a box line from its rowid + * + * @param int $rowid Row id to load + * @return int <0 if KO, >0 if OK */ function fetch($rowid) { @@ -60,7 +67,7 @@ class ModeleBoxes // Can't be abtract as it is instanciated to build "empty" $sql = "SELECT b.rowid, b.box_id, b.position, b.box_order, b.fk_user"; $sql.= " FROM ".MAIN_DB_PREFIX."boxes as b"; $sql.= " WHERE b.rowid = ".$rowid; - dol_syslog("ModeleBoxes::fetch rowid=".$rowid); + dol_syslog(get_class($this)."::fetch rowid=".$rowid); $resql = $this->db->query($sql); if ($resql)