Doxygen
This commit is contained in:
parent
f32733b1df
commit
b1a7cd82be
@ -25,8 +25,11 @@
|
|||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT."/core/boxes/modules_boxes.php");
|
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 $boxcode="lastactions";
|
||||||
var $boximg="object_action";
|
var $boximg="object_action";
|
||||||
|
|||||||
@ -33,17 +33,21 @@ class ModeleBoxes // Can't be abtract as it is instanciated to build "empty"
|
|||||||
var $error='';
|
var $error='';
|
||||||
var $max=5;
|
var $max=5;
|
||||||
|
|
||||||
/*
|
|
||||||
* \brief Constructeur
|
|
||||||
*/
|
|
||||||
function ModeleBoxes($DB)
|
|
||||||
{
|
|
||||||
$this->db=$DB;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Renvoi le dernier message d'erreur de creation de facture
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $db Database hanlder
|
||||||
|
*/
|
||||||
|
function ModeleBoxes($db)
|
||||||
|
{
|
||||||
|
$this->db=$db;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return last error message
|
||||||
|
*
|
||||||
|
* @return string Error message
|
||||||
*/
|
*/
|
||||||
function error()
|
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)
|
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 = "SELECT b.rowid, b.box_id, b.position, b.box_order, b.fk_user";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."boxes as b";
|
$sql.= " FROM ".MAIN_DB_PREFIX."boxes as b";
|
||||||
$sql.= " WHERE b.rowid = ".$rowid;
|
$sql.= " WHERE b.rowid = ".$rowid;
|
||||||
dol_syslog("ModeleBoxes::fetch rowid=".$rowid);
|
dol_syslog(get_class($this)."::fetch rowid=".$rowid);
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user