dolibarr  9.0.0
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 ()
 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

◆ __construct() [1/3]

MenuManager::__construct (   $db,
  $type_user 
)

Constructor.

Parameters
DoliDB$dbDatabase handler
int$type_userType of user

Definition at line 52 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 51 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 46 of file empty.php.

Member Function Documentation

◆ loadMenu() [1/3]

MenuManager::loadMenu ( )

Load this->tabMenu.

Returns
void

Definition at line 58 of file empty.php.

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

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

◆ showmenu() [1/3]

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

◆ showmenu() [2/3]

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

Show menu.

Parameters
string$mode'top', '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 126 of file auguria_menu.php.

◆ showmenu() [3/3]

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

Show menu.

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


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