|
dolibarr 19.0.4
|
Class to manage left menus. More...
Public Member Functions | |
| __construct () | |
| Constructor. | |
| clear () | |
| Clear property ->liste. | |
| add ($url, $titre, $level=0, $enabled=1, $target='', $mainmenu='', $leftmenu='', $position=0, $id='', $idsel='', $classname='', $prefix='') | |
| Add a menu entry into this->liste (at end) | |
| insert ($idafter, $url, $titre, $level=0, $enabled=1, $target='', $mainmenu='', $leftmenu='', $position=0, $id='', $idsel='', $classname='', $prefix='') | |
| Insert a menu entry into this->liste (after $idafter) | |
| remove_last () | |
| Remove a menu entry from this->liste. | |
| getNbOfVisibleMenuEntries () | |
| Return number of visible entries (gray or not) | |
Class to manage left menus.
Definition at line 29 of file menu.class.php.
| Menu::add | ( | $url, | |
| $titre, | |||
| $level = 0, | |||
| $enabled = 1, | |||
| $target = '', | |||
| $mainmenu = '', | |||
| $leftmenu = '', | |||
| $position = 0, | |||
| $id = '', | |||
| $idsel = '', | |||
| $classname = '', | |||
| $prefix = '' ) |
Add a menu entry into this->liste (at end)
| string | $url | Url to follow on click (does not include DOL_URL_ROOT) |
| string | $titre | Label of menu to add. The value must already be translated. |
| integer | $level | Level of menu to add |
| int | $enabled | Menu active or not (0=Not active, 1=Active, 2=Active but grey) |
| string | $target | Target link |
| string | $mainmenu | Main menu ('home', 'companies', 'products', ...) |
| string | $leftmenu | Left menu ('setup', 'system', 'admintools', ...) |
| int | $position | Position (not used yet) |
| string | $id | Id |
| string | $idsel | Id sel |
| string | $classname | Class name |
| string | $prefix | Prefix to title (image or picto) |
Definition at line 68 of file menu.class.php.
| Menu::clear | ( | ) |
| Menu::getNbOfVisibleMenuEntries | ( | ) |
Return number of visible entries (gray or not)
Definition at line 118 of file menu.class.php.
| Menu::insert | ( | $idafter, | |
| $url, | |||
| $titre, | |||
| $level = 0, | |||
| $enabled = 1, | |||
| $target = '', | |||
| $mainmenu = '', | |||
| $leftmenu = '', | |||
| $position = 0, | |||
| $id = '', | |||
| $idsel = '', | |||
| $classname = '', | |||
| $prefix = '' ) |
Insert a menu entry into this->liste (after $idafter)
| int | $idafter | Array key after which inserting new entry |
| string | $url | Url to follow on click |
| string | $titre | Label of menu to add. The value must already be translated. |
| integer | $level | Level of menu to add |
| int | $enabled | Menu active or not |
| string | $target | Target link |
| string | $mainmenu | Main menu ('home', 'companies', 'products', ...) |
| string | $leftmenu | Left menu ('setup', 'system', 'admintools', ...) |
| int | $position | Position (not used yet) |
| string | $id | Id |
| string | $idsel | Id sel |
| string | $classname | Class name |
| string | $prefix | Prefix to title (image or picto) |
Definition at line 91 of file menu.class.php.
| Menu::remove_last | ( | ) |