dolibarr  7.0.0-beta
Functions
eldy.lib.php File Reference

Library for file eldy menus. More...

Go to the source code of this file.

Functions

 print_eldy_menu ($db, $atarget, $type_user, &$tabMenu, &$menu, $noout=0, $mode='')
 Core function to output top menu eldy. More...
 
 print_start_menu_array ()
 Output start menu array. More...
 
 print_start_menu_entry ($idsel, $classname, $showmode)
 Output start menu entry. More...
 
 print_text_menu_entry ($text, $showmode, $url, $id, $idsel, $classname, $atarget)
 Output menu entry. More...
 
 print_end_menu_entry ($showmode)
 Output end menu entry. More...
 
 print_end_menu_array ()
 Output menu array. More...
 
 print_left_eldy_menu ($db, $menu_array_before, $menu_array_after, &$tabMenu, &$menu, $noout=0, $forcemainmenu='', $forceleftmenu='', $moredata=null)
 Core function to output left menu eldy Fill &$menu (example with $forcemainmenu='home' $forceleftmenu='all', return left menu tree of Home) More...
 

Detailed Description

Library for file eldy menus.

Definition in file eldy.lib.php.

Function Documentation

print_eldy_menu (   $db,
  $atarget,
  $type_user,
$tabMenu,
$menu,
  $noout = 0,
  $mode = '' 
)

Core function to output top menu eldy.

Parameters
DoliDB$dbDatabase handler
string$atargetTarget (Example: '' or '_top')
int$type_user0=Menu for backoffice, 1=Menu for front office
array$tabMenuIf array with menu entries already loaded, we put this array here (in most cases, it's empty)
Menu$menuObject Menu to return back list of menu entries
int$noout1=Disable output (Initialise &$menu only).
string$mode'top', 'topnb', 'left', 'jmobile'
Returns
int 0

Definition at line 42 of file eldy.lib.php.

References dol_buildpath(), dol_sort_array(), GETPOST(), isVisibleToUserType(), make_substitutions(), print_end_menu_array(), print_end_menu_entry(), print_start_menu_array(), print_start_menu_entry(), and print_text_menu_entry().

Referenced by MenuManager\showmenu().

print_end_menu_array ( )

Output menu array.

Returns
void

Definition at line 427 of file eldy.lib.php.

References print.

Referenced by print_eldy_menu().

print_end_menu_entry (   $showmode)

Output end menu entry.

Parameters
int$showmode0 = hide, 1 = allowed or 2 = not allowed
Returns
void

Definition at line 413 of file eldy.lib.php.

References print.

Referenced by print_eldy_menu().

print_left_eldy_menu (   $db,
  $menu_array_before,
  $menu_array_after,
$tabMenu,
$menu,
  $noout = 0,
  $forcemainmenu = '',
  $forceleftmenu = '',
  $moredata = null 
)

Core function to output left menu eldy Fill &$menu (example with $forcemainmenu='home' $forceleftmenu='all', return left menu tree of Home)

Parameters
DoliDB$dbDatabase handler
array$menu_array_beforeTable of menu entries to show before entries of menu handler (menu->liste filled with menu->add)
array$menu_array_afterTable of menu entries to show after entries of menu handler (menu->liste filled with menu->add)
array$tabMenuIf array with menu entries already loaded, we put this array here (in most cases, it's empty)
Menu$menuObject Menu to return back list of menu entries
int$nooutDisable output (Initialise &$menu only).
string$forcemainmenu'x'=Force mainmenu to mainmenu='x'
string$forceleftmenu'all'=Force leftmenu to '' (= all). If value come being '', we change it to value in session and 'none' if not defined in session.
array$moredataAn array with more data to output
Returns
int nb of menu entries

We update newmenu with entries found into database

Definition at line 451 of file eldy.lib.php.

References $resql, $title, dol_buildpath(), dol_print_error(), dol_trunc(), GETPOST(), make_substitutions(), print, and Account\TYPE_CASH.

Referenced by MenuManager\showmenu().

print_start_menu_array ( )

Output start menu array.

Returns
void

Definition at line 344 of file eldy.lib.php.

References print.

Referenced by print_eldy_menu().

print_start_menu_entry (   $idsel,
  $classname,
  $showmode 
)

Output start menu entry.

Parameters
string$idselText
string$classnameString to add a css class
int$showmode0 = hide, 1 = allowed or 2 = not allowed
Returns
void

Definition at line 360 of file eldy.lib.php.

References print.

Referenced by print_eldy_menu().

print_text_menu_entry (   $text,
  $showmode,
  $url,
  $id,
  $idsel,
  $classname,
  $atarget 
)

Output menu entry.

Parameters
string$textText
int$showmode0 = hide, 1 = allowed or 2 = not allowed
string$urlUrl
string$idId
string$idselId sel
string$classnameClass name
string$atargetTarget
Returns
void

Definition at line 381 of file eldy.lib.php.

References dol_escape_htmltag(), and print.

Referenced by print_eldy_menu().