dolibarr  13.0.2
Public Member Functions | List of all members
MenuManager Class Reference

Class to manage menu Auguria. More...

Public Member Functions

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

Detailed Description

Class to manage menu Auguria.

Class to manage empty menu.

Class to manage menu Eldy.

Definition at line 29 of file auguria_menu.php.

Constructor & Destructor Documentation

MenuManager::__construct (   $db,
  $type_user 
)

Constructor.

Parameters
DoliDB$dbDatabase handler
int$type_userType of user

Definition at line 52 of file auguria_menu.php.

References db.

MenuManager::__construct (   $db,
  $type_user 
)

Constructor.

Parameters
DoliDB$dbDatabase handler
int$type_userType of user

Definition at line 51 of file eldy_menu.php.

References db.

MenuManager::__construct (   $db,
  $type_user 
)

Constructor.

Parameters
DoliDB$dbDatabase handler
int$type_userType of user

Definition at line 49 of file empty.php.

References db.

Member Function Documentation

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 63 of file empty.php.

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 65 of file eldy_menu.php.

References db, GETPOST(), and GETPOSTISSET().

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 66 of file auguria_menu.php.

References db, GETPOST(), and GETPOSTISSET().

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

Show menu.

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

Definition at line 77 of file empty.php.

References dol_buildpath(), dol_sort_array(), getCommonSubstitutionArray(), make_substitutions(), print, 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().

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 125 of file auguria_menu.php.

References db, dol_buildpath(), make_substitutions(), print, print_auguria_menu(), and print_left_auguria_menu().

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 129 of file eldy_menu.php.

References db, dol_buildpath(), make_substitutions(), print, print_eldy_menu(), and print_left_eldy_menu().


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