dolibarr 21.0.0-beta
|
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. | |
print_start_menu_array () | |
Output start menu array. | |
print_start_menu_entry ($idsel, $classname, $showmode) | |
Output start menu entry. | |
print_text_menu_entry ($text, $showmode, $url, $id, $idsel, $classname, $atarget, $menuval=array()) | |
Output menu entry. | |
print_end_menu_entry ($showmode) | |
Output end menu entry. | |
print_end_menu_array () | |
Output menu array. | |
print_left_eldy_menu ($db, $menu_array_before, $menu_array_after, &$tabMenu, &$menu, $noout=0, $forcemainmenu='', $forceleftmenu='', $moredata=null, $type_user=0) | |
Core function to output left menu eldy Fill &$menu (example with $forcemainmenu='home' $forceleftmenu='all', return left menu tree of Home) | |
get_left_menu_home ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu HOME. | |
get_left_menu_thridparties ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu THIRDPARTIES. | |
get_left_menu_commercial ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu COMMERCIAL (propal, commande, supplier_proposal, supplier_order, contrat, ficheinter) | |
get_left_menu_billing ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left COMPTA-FINANCIAL. | |
get_left_menu_accountancy ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left COMPTA-FINANCIAL (accountancy) | |
get_left_menu_bank ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu BANK. | |
get_left_menu_products ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu PRODUCTS-SERVICES. | |
get_left_menu_mrp ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu PRODUCTS-SERVICES MRP - GPAO. | |
get_left_menu_projects ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu PROJECTS. | |
get_left_menu_hrm ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu HRM. | |
get_left_menu_tools ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu TOOLS. | |
get_left_menu_members ($mainmenu, &$newmenu, $usemenuhider=1, $leftmenu='none', $type_user=0) | |
Get left Menu MEMBERS. | |
Library for file eldy menus.
Definition in file eldy.lib.php.
get_left_menu_accountancy | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left COMPTA-FINANCIAL (accountancy)
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1662 of file eldy.lib.php.
References $conf, dol_print_error(), getDolGlobalInt(), getDolGlobalString(), and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_bank | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu BANK.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2025 of file eldy.lib.php.
References $conf, getDolGlobalString(), and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_billing | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left COMPTA-FINANCIAL.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1479 of file eldy.lib.php.
References $conf, getDolGlobalString(), and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_commercial | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu COMMERCIAL (propal, commande, supplier_proposal, supplier_order, contrat, ficheinter)
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1353 of file eldy.lib.php.
References getDolGlobalInt(), getDolGlobalString(), and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_home | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu HOME.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of user |
Definition at line 1117 of file eldy.lib.php.
References $conf, getDolGlobalInt(), getDolGlobalString(), img_picto(), and img_warning().
Referenced by print_left_eldy_menu().
get_left_menu_hrm | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu HRM.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2361 of file eldy.lib.php.
References $conf, getDolGlobalString(), GETPOSTINT(), and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_members | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu MEMBERS.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2519 of file eldy.lib.php.
References $conf, and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_mrp | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu PRODUCTS-SERVICES MRP - GPAO.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2252 of file eldy.lib.php.
References $conf, and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_products | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu PRODUCTS-SERVICES.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2108 of file eldy.lib.php.
References $conf, getDolGlobalString(), and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_projects | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu PROJECTS.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2286 of file eldy.lib.php.
References $conf, getDolGlobalInt(), getDolGlobalString(), GETPOSTINT(), img_picto(), and isVisibleToUserType().
Referenced by print_left_eldy_menu().
get_left_menu_thridparties | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu THIRDPARTIES.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 1253 of file eldy.lib.php.
References $conf, getDolGlobalString(), and img_picto().
Referenced by print_left_eldy_menu().
get_left_menu_tools | ( | $mainmenu, | |
& | $newmenu, | ||
$usemenuhider = 1, | |||
$leftmenu = 'none', | |||
$type_user = 0 ) |
Get left Menu TOOLS.
string | $mainmenu | Main menu |
Menu | $newmenu | Object Menu to return back list of menu entries |
int | $usemenuhider | Use menu hider |
string | $leftmenu | Left menu |
int | $type_user | Type of targeted user for menu |
Definition at line 2469 of file eldy.lib.php.
References getDolGlobalInt(), and img_picto().
Referenced by print_left_eldy_menu().
print_eldy_menu | ( | $db, | |
$atarget, | |||
$type_user, | |||
& | $tabMenu, | ||
& | $menu, | ||
$noout = 0, | |||
$mode = '' ) |
Core function to output top menu eldy.
DoliDB | $db | Database handler |
string | $atarget | Target (Example: '' or '_top') |
int | $type_user | 0=Menu for backoffice, 1=Menu for front office |
array<array{rowid:string,fk_menu:string,langs:string,enabled:int<0,2>,type:string,fk_mainmenu:string,fk_leftmenu:string,url:string,titre:string,perms:string,target:string,mainmenu:string,leftmenu:string,position:int,level?:int,prefix:string}> | $tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty). For eldy menu, it contains menu entries loaded from database. | |
Menu | $menu | Object Menu to return back list of menu entries |
int | $noout | 1=Disable output (Initialise &$menu only). |
string | $mode | 'top', 'topnb', 'left', 'jmobile' |
Definition at line 47 of file eldy.lib.php.
References $conf, $id, dol_buildpath(), dol_escape_htmltag(), dol_sort_array(), getCommonSubstitutionArray(), getDolGlobalInt(), getDolGlobalString(), img_picto(), 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.
Definition at line 715 of file eldy.lib.php.
Referenced by print_eldy_menu().
print_end_menu_entry | ( | $showmode | ) |
Output end menu entry.
int | $showmode | 0 = hide, 1 = allowed or 2 = not allowed |
Definition at line 702 of file eldy.lib.php.
Referenced by print_eldy_menu().
print_left_eldy_menu | ( | $db, | |
$menu_array_before, | |||
$menu_array_after, | |||
& | $tabMenu, | ||
& | $menu, | ||
$noout = 0, | |||
$forcemainmenu = '', | |||
$forceleftmenu = '', | |||
$moredata = null, | |||
$type_user = 0 ) |
Core function to output left menu eldy Fill &$menu (example with $forcemainmenu='home' $forceleftmenu='all', return left menu tree of Home)
DoliDB | $db | Database handler |
array<array{rowid:string,fk_menu:string,langs:string,enabled:int<0,2>,type:string,fk_mainmenu:string,fk_leftmenu:string,url:string,titre:string,perms:string,target:string,mainmenu:string,leftmenu:string,position:int,level?:int,prefix:string}> | $menu_array_before Table of menu entries to show before entries of menu handler (menu->liste filled with menu->add) | |
array<array{rowid:string,fk_menu:string,langs:string,enabled:int<0,2>,type:string,fk_mainmenu:string,fk_leftmenu:string,url:string,titre:string,perms:string,target:string,mainmenu:string,leftmenu:string,position:int,level?:int,prefix:string}> | $menu_array_after Table of menu entries to show after entries of menu handler (menu->liste filled with menu->add) | |
array<array{rowid:string,fk_menu:string,langs:string,enabled:int<0,2>,type:string,fk_mainmenu:string,fk_leftmenu:string,url:string,titre:string,perms:string,target:string,mainmenu:string,leftmenu:string,position:int,level?:int,prefix:string}> | $tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty) | |
Menu | $menu | Object Menu to return back list of menu entries |
int<0,1> | $noout Disable 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<string,string> | $moredata An array with more data to output | |
int<0,1> | $type_user 0=Menu for backoffice, 1=Menu for front office |
Definition at line 738 of file eldy.lib.php.
References $conf, dol_buildpath(), dol_string_nohtmltag(), dol_trunc(), get_left_menu_accountancy(), get_left_menu_bank(), get_left_menu_billing(), get_left_menu_commercial(), get_left_menu_home(), get_left_menu_hrm(), get_left_menu_members(), get_left_menu_mrp(), get_left_menu_products(), get_left_menu_projects(), get_left_menu_thridparties(), get_left_menu_tools(), getCommonSubstitutionArray(), getDolGlobalString(), and make_substitutions().
Referenced by MenuManager\showmenu().
print_start_menu_array | ( | ) |
Output start menu array.
Definition at line 613 of file eldy.lib.php.
Referenced by print_eldy_menu().
print_start_menu_entry | ( | $idsel, | |
$classname, | |||
$showmode ) |
Output start menu entry.
string | $idsel | Text |
string | $classname | String to add a css class |
int | $showmode | 0 = hide, 1 = allowed or 2 = not allowed |
Definition at line 627 of file eldy.lib.php.
Referenced by print_eldy_menu().
print_text_menu_entry | ( | $text, | |
$showmode, | |||
$url, | |||
$id, | |||
$idsel, | |||
$classname, | |||
$atarget, | |||
$menuval = array() ) |
Output menu entry.
string | $text | Text |
int | $showmode | 0 = hide, 1 = allowed or 2 = not allowed |
string | $url | Url |
string | $id | Id |
string | $idsel | Id sel |
string | $classname | Class name |
string | $atarget | Target |
array{}|array{rowid:string,fk_menu:string,langs:string,enabled:int<0,2>,type:string,fk_mainmenu:string,fk_leftmenu:string,url:string,titre:string,perms:string,target:string,mainmenu:string,leftmenu:string,position:int,level?:int,prefix:string} | $menuval All the $menuval array |
Definition at line 649 of file eldy.lib.php.
References dol_escape_htmltag(), and getDolGlobalString().
Referenced by print_eldy_menu().