dolibarr 18.0.6
|
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 29 of file infobox.class.php.
|
static |
Name of positions (See below)
Definition at line 36 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 | null | $user | Object user to filter |
array | $excludelist | Array of box id (box.box_id = boxes_def.rowid) to exclude |
int | $includehidden | Include also hidden boxes |
Definition at line 94 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 | Name 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 224 of file infobox.class.php.
References dol_set_user_param(), and dol_syslog().