dolibarr 21.0.0-alpha
|
Class to manage boxes on pages. More...
Static Public Member Functions | |
static | getListOfPagesForBoxes () |
Name of positions (See below) | |
static | listBoxes ($dbs, $mode, $zone, $user=null, $excludelist=array(), $includehidden=1) |
Return array of boxes qualified for area and user. | |
static | saveboxorder ($dbs, $zone, $boxorder, $userid=0) |
Save order of boxes for area and user. | |
Class to manage boxes on pages.
This is an utility class (all is static)
Definition at line 30 of file infobox.class.php.
|
static |
Name of positions (See below)
Definition at line 37 of file infobox.class.php.
References getDolGlobalInt().
Referenced by DolibarrModules\insert_boxes().
|
static |
Return array of boxes qualified for area and user.
DoliDB | $dbs | Database handler |
string | $mode | 'available' or 'activated' |
int | $zone | Name or area (-1 for all, 0 for Homepage, 1 for Accountancy, 2 for xxx, ...) |
?User | $user | Object user to filter |
int[] | $excludelist | Array of box id (box.box_id = boxes_def.rowid) to exclude |
int | $includehidden | Include also hidden boxes |
Definition at line 95 of file infobox.class.php.
References dol_include_once(), and dol_syslog().
|
static |
Save order of boxes for area and user.
DoliDB | $dbs | Database handler |
int | $zone | Key of area (0 for Homepage, ...) |
string | $boxorder | List of boxes with correct order 'A:123,456,...-B:789,321...' |
int | $userid | Id of user |
Definition at line 226 of file infobox.class.php.
References $id, dol_set_user_param(), and dol_syslog().