|
dolibarr
13.0.2
|
Class to manage boxes on pages. More...
Static Public Member Functions | |
| static | getListOfPagesForBoxes () |
| Name of positions (See below) More... | |
| static | listBoxes ($db, $mode, $zone, $user=null, $excludelist=array(), $includehidden=1) |
| Return array of boxes qualified for area and user. More... | |
| static | saveboxorder ($db, $zone, $boxorder, $userid=0) |
| Save order of boxes for area and user. More... | |
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.
Referenced by DolibarrModules\insert_boxes().
|
static |
Return array of boxes qualified for area and user.
| DoliDB | $db | Database handler |
| string | $mode | 'available' or 'activated' |
| string | $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 91 of file infobox.class.php.
References $resql, dol_include_once(), and dol_syslog().
Referenced by FormOther\getBoxesArea().
|
static |
Save order of boxes for area and user.
| DoliDB | $db | Database handler |
| string | $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 222 of file infobox.class.php.
References dol_set_user_param(), and dol_syslog().