dolibarr 20.0.0
MenuManager Class Reference

Class to manage menu Auguria. More...

Public Member Functions

 __construct ($db, $type_user)
 Constructor.
 
 loadMenu ($forcemainmenu='', $forceleftmenu='')
 Load this->tabMenu.
 
 showmenu ($mode, $moredata=null)
 Show menu.
 
 __construct ($db, $type_user)
 Constructor.
 
 loadMenu ($forcemainmenu='', $forceleftmenu='')
 Load this->tabMenu.
 
 showmenu ($mode, $moredata=null)
 Show menu.
 
 __construct ($db, $type_user)
 Constructor.
 
 loadMenu ($forcemainmenu='', $forceleftmenu='')
 Load this->tabMenu.
 
 showmenu ($mode, $moredata=null)
 Show menu.
 

Detailed Description

Class to manage menu Auguria.

Class to manage empty menu.

Class to manage menu Eldy.

Definition at line 31 of file auguria_menu.php.

Constructor & Destructor Documentation

◆ __construct() [1/3]

MenuManager::__construct ( $db,
$type_user )

Constructor.

Parameters
DoliDB$dbDatabase handler
int$type_userType of user

Definition at line 70 of file auguria_menu.php.

◆ __construct() [2/3]

MenuManager::__construct ( $db,
$type_user )

Constructor.

Parameters
DoliDB$dbDatabase handler
int$type_userType of user

Definition at line 69 of file eldy_menu.php.

◆ __construct() [3/3]

MenuManager::__construct ( $db,
$type_user )

Constructor.

Parameters
DoliDB$dbDatabase handler
int$type_userType of user

Definition at line 55 of file empty.php.

Member Function Documentation

◆ loadMenu() [1/3]

MenuManager::loadMenu ( $forcemainmenu = '',
$forceleftmenu = '' )

Load this->tabMenu.

Parameters
string$forcemainmenuTo force mainmenu to load
string$forceleftmenuTo force leftmenu to load
Returns
void

Definition at line 84 of file auguria_menu.php.

References GETPOST(), and GETPOSTINT().

◆ loadMenu() [2/3]

MenuManager::loadMenu ( $forcemainmenu = '',
$forceleftmenu = '' )

Load this->tabMenu.

Parameters
string$forcemainmenuTo force mainmenu to load
string$forceleftmenuTo force leftmenu to load
Returns
void

Definition at line 83 of file eldy_menu.php.

References GETPOST(), and GETPOSTINT().

◆ loadMenu() [3/3]

MenuManager::loadMenu ( $forcemainmenu = '',
$forceleftmenu = '' )

Load this->tabMenu.

Parameters
string$forcemainmenuTo force mainmenu to load
string$forceleftmenuTo force leftmenu to load
Returns
void

Definition at line 69 of file empty.php.

◆ showmenu() [1/3]

MenuManager::showmenu ( $mode,
$moredata = null )

Show menu.

Menu defined in sql tables were stored into $this->tabMenu BEFORE this is called.

Parameters
string$mode'top', 'topnb', 'left', 'jmobile' (used to get full xml ul/li menu)
array$moredataAn array with more data to output
Returns
int 0 or nb of top menu entries if $mode = 'topnb'

Definition at line 148 of file auguria_menu.php.

References dol_buildpath(), getDolGlobalString(), make_substitutions(), print_auguria_menu(), and print_left_auguria_menu().

◆ showmenu() [2/3]

MenuManager::showmenu ( $mode,
$moredata = null )

Show menu.

Menu defined in sql tables were stored into $this->tabMenu BEFORE this is called.

Parameters
string$mode'top', 'topnb', 'left', 'jmobile' (used to get full xml ul/li menu)
array$moredataAn array with more data to output
Returns
int 0 or nb of top menu entries if $mode = 'topnb'

Definition at line 144 of file eldy_menu.php.

References dol_buildpath(), getDolGlobalString(), make_substitutions(), print_eldy_menu(), and print_left_eldy_menu().

◆ showmenu() [3/3]

MenuManager::showmenu ( $mode,
$moredata = null )

Show menu.

Parameters
string$mode'top', 'left', 'jmobile'
array$moredataAn array with more data to output
Returns
int|string 0 or nb of top menu entries if $mode = 'topnb', string inc ase of bad parameter

Definition at line 83 of file empty.php.

References dol_buildpath(), dol_sort_array(), getCommonSubstitutionArray(), getDolGlobalString(), make_substitutions(), print_end_menu_array_empty(), print_end_menu_entry_empty(), print_start_menu_array_empty(), print_start_menu_entry_empty(), and print_text_menu_entry_empty().


The documentation for this class was generated from the following files: