dolibarr 21.0.0-alpha
|
Class to manage the box to show last customer orders. More...
Public Member Functions | |
__construct ($db, $param) | |
Constructor. | |
loadBox ($max=5) | |
Load data for box to show them later. | |
showBox ($head=null, $contents=null, $nooutput=0) | |
Method to show box. | |
![]() | |
error () | |
Return last error message. | |
fetch ($rowid) | |
Load a box line from its rowid. | |
Additional Inherited Members | |
![]() | |
static | getWidgetsList ($forcedirwidget=null) |
Return list of widget. | |
Class to manage the box to show last customer orders.
Definition at line 34 of file box_commandes.php.
box_commandes::__construct | ( | $db, | |
$param ) |
box_commandes::loadBox | ( | $max = 5 | ) |
Load data for box to show them later.
int | $max | Maximum number of records to load |
Definition at line 62 of file box_commandes.php.
References dol_escape_htmltag(), dol_print_date(), getDolGlobalString(), and price().
box_commandes::showBox | ( | $head = null, | |
$contents = null, | |||
$nooutput = 0 ) |
Method to show box.
?array{text?:string,sublink?:string,subpicto:?string,nbcol?:int,limit?:int,subclass?:string,graph?:string} | $head Array with properties of box title |
?array<array<array{tr?:string,td?:string,target?:string,text?:string,text2?:string,textnoformat?:string,tooltip?:string,logo?:string,url?:string,maxlength?:string}>> | $contents Array with properties of box lines |
int<0,1> | $nooutput No print, only return string |
Reimplemented from ModeleBoxes.
Definition at line 220 of file box_commandes.php.