dolibarr 21.0.0-alpha
|
Lib for public access of WebPortal. More...
Go to the source code of this file.
Functions | |
getNav ($Tmenu) | |
Get nav menu. | |
getNavItem ($item, $deep=0) | |
Get nav item. | |
menuSortInv ($a, $b) | |
Sort menu uasort callback function to Sort menu fields. | |
Lib for public access of WebPortal.
Definition in file webportal.lib.php.
getNav | ( | $Tmenu | ) |
Get nav menu.
array<string,array{id:string,rank:int,url:string,name:string,group:string,override?:int<0,1>,children?:array<array{id:string,rank:int,url:string,name:string,group:string,override?:int<0,1>}>}>|array<user_logout,array{id:string,rank:int,url:string,name:string}> | $Tmenu Array of menu |
Definition at line 18 of file webportal.lib.php.
References getNavItem().
getNavItem | ( | $item, | |
$deep = 0 ) |
Get nav item.
TODO : Dropdown is actually not css implemented
array{id:string,rank:int,url:string,name:string,group:string,override?:int<0,1>,children?:array<array{id:string,rank:int,url:string,name:string,group:string,override?:int<0,1>,active?:bool,separator?:bool}>} | $item Item of menu | |
int | $deep | Level of deep |
Definition at line 37 of file webportal.lib.php.
References $context, Context\getInstance(), and getNavItem().
Referenced by getNav(), and getNavItem().
menuSortInv | ( | $a, | |
$b ) |
Sort menu uasort callback function to Sort menu fields.
array{rank?:int} | $a PDF lines array fields configs |
array{rank?:int} | $b PDF lines array fields configs |
// Sorting uasort ( $this->cols, array( $this, 'menuSort' ) );
Definition at line 115 of file webportal.lib.php.