dolibarr 21.0.0-beta
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.

@phan-suppress PhanRedefineClass

Definition at line 33 of file auguria_menu.php.

Constructor & Destructor Documentation

◆ __construct() [1/3]

MenuManager::__construct ( $db,
$type_user )

Constructor.

Parameters
DoliDB$dbDatabase handler
int<0,1>$type_user Type of user

Definition at line 81 of file auguria_menu.php.

◆ __construct() [2/3]

MenuManager::__construct ( $db,
$type_user )

Constructor.

Parameters
DoliDB$dbDatabase handler
int<0,1>$type_user Type of user

Definition at line 80 of file eldy_menu.php.

◆ __construct() [3/3]

MenuManager::__construct ( $db,
$type_user )

Constructor.

Parameters
DoliDB$dbDatabase handler
int<0,1>$type_user Type of user

Definition at line 78 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 95 of file auguria_menu.php.

References $conf, 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 94 of file eldy_menu.php.

References $conf, 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 92 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<string,string>$moredata An array with more data to output
Returns
int<0,max> 0 or nb of top menu entries if $mode = 'topnb'

Definition at line 159 of file auguria_menu.php.

References $conf, 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', 'leftdropdown', 'jmobile' (used to get full xml ul/li menu)
?array<string,mixed>$moredata An array with more data to output
Returns
int 0 or nb of top menu entries if $mode = 'topnb'

Definition at line 155 of file eldy_menu.php.

References $conf, 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<string,mixed>$moredata An array with more data to output
Returns
int<0,max>|string 0 or nb of top menu entries if $mode = 'topnb', string inc ase of bad parameter

Definition at line 106 of file empty.php.

References $conf, $id, 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: