dolibarr 20.0.0
webportal.lib.php File Reference

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.
 

Detailed Description

Lib for public access of WebPortal.

Definition in file webportal.lib.php.

Function Documentation

◆ getNav()

getNav ( $Tmenu)

Get nav menu.

Parameters
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>}>}>$Tmenu Array of menu
Returns
string

Definition at line 17 of file webportal.lib.php.

References getNavItem().

◆ getNavItem()

getNavItem ( $item,
$deep = 0 )

Get nav item.

TODO : Dropdown is actually not css implemented

Parameters
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$deepLevel of deep
Returns
string

Definition at line 36 of file webportal.lib.php.

References Context\getInstance(), and getNavItem().

Referenced by getNav(), and getNavItem().

◆ menuSortInv()

menuSortInv ( $a,
$b )

Sort menu uasort callback function to Sort menu fields.

Parameters
array{rank?:int}$a PDF lines array fields configs
array{rank?:int}$b PDF lines array fields configs
Returns
int<-1,1> Return compare result

// Sorting uasort ( $this->cols, array( $this, 'menuSort' ) );

Definition at line 114 of file webportal.lib.php.