Qual: Removed errors
This commit is contained in:
parent
6a3b9344a9
commit
9d80c021e6
@ -58,9 +58,9 @@ class Menubase
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $DB Database handler
|
* @param DoliDB $DB Database handler
|
||||||
* @param string $menu_handler
|
* @param string $menu_handler Menu handler
|
||||||
* @param string $type
|
* @param string $type Type
|
||||||
*/
|
*/
|
||||||
function Menubase($DB,$menu_handler='',$type='')
|
function Menubase($DB,$menu_handler='',$type='')
|
||||||
{
|
{
|
||||||
@ -167,10 +167,11 @@ class Menubase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update menu entry into database
|
* Update menu entry into database.
|
||||||
* @param user User that modify
|
*
|
||||||
* @param notrigger 0=no, 1=yes (no update trigger)
|
* @param User $user User that modify
|
||||||
* @return int <0 if KO, >0 if OK
|
* @param int $notrigger 0=no, 1=yes (no update trigger)
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function update($user=0, $notrigger=0)
|
function update($user=0, $notrigger=0)
|
||||||
{
|
{
|
||||||
@ -302,10 +303,11 @@ class Menubase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* \brief Delete object in database
|
* Delete object in database
|
||||||
* \param user User that delete
|
*
|
||||||
* \return int <0 if KO, >0 if OK
|
* @param User $user User that delete
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function delete($user)
|
function delete($user)
|
||||||
{
|
{
|
||||||
@ -358,12 +360,13 @@ class Menubase
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Complete this->newmenu with menu entry found in $tab
|
* Complete this->newmenu with menu entry found in $tab
|
||||||
*
|
*
|
||||||
* @param $tab
|
* @param array $tab Tab array
|
||||||
* @param $pere
|
* @param int $pere Id of parent
|
||||||
* @param $rang
|
* @param int $rang Rang
|
||||||
* @param $myleftmenu Value for left that defined leftmenu
|
* @param string $myleftmenu Value for left that defined leftmenu
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
function recur($tab, $pere, $rang, $myleftmenu)
|
function recur($tab, $pere, $rang, $myleftmenu)
|
||||||
{
|
{
|
||||||
@ -400,12 +403,14 @@ class Menubase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load tabMenu array
|
* Load tabMenu array
|
||||||
* @param type_user 0=Internal,1=External,2=All
|
*
|
||||||
* @param mainmenu Value for mainmenu that defined top menu
|
* @param string $mainmenu Value for mainmenu that defined top menu
|
||||||
* @param menu_handler Name of menu_handler used (auguria, eldy...)
|
* @param string $myleftmenu Left menu name
|
||||||
* @param tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty)
|
* @param int $type_user 0=Internal,1=External,2=All
|
||||||
* @return array Return array with menu entries for top menu
|
* @param string $menu_handler Name of menu_handler used (auguria, eldy...)
|
||||||
|
* @param array &$tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty)
|
||||||
|
* @return array Return array with menu entries for top menu
|
||||||
*/
|
*/
|
||||||
function menuTopCharger($mainmenu, $myleftmenu, $type_user, $menu_handler, &$tabMenu=null)
|
function menuTopCharger($mainmenu, $myleftmenu, $type_user, $menu_handler, &$tabMenu=null)
|
||||||
{
|
{
|
||||||
@ -449,14 +454,15 @@ class Menubase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load entries found in database in a menu array
|
* Load entries found in database in a menu array.
|
||||||
* @param $newmenu Menu array to complete
|
*
|
||||||
* @param $mainmenu Value for mainmenu that defined top menu of left menu
|
* @param array $newmenu Menu array to complete
|
||||||
* @param $myleftmenu Value that defined leftmenu
|
* @param string $mainmenu Value for mainmenu that defined top menu of left menu
|
||||||
* @param $type_user 0=Internal,1=External,2=All
|
* @param string $myleftmenu Value that defined leftmenu
|
||||||
* @param $menu_handler Name of menu_handler used (auguria, eldy...)
|
* @param int $type_user 0=Internal,1=External,2=All
|
||||||
* @param $tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty)
|
* @param string $menu_handler Name of menu_handler used (auguria, eldy...)
|
||||||
* @return array Menu array for particular mainmenu value or full tabArray
|
* @param array &$tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty)
|
||||||
|
* @return array Menu array for particular mainmenu value or full tabArray
|
||||||
*/
|
*/
|
||||||
function menuLeftCharger($newmenu, $mainmenu, $myleftmenu, $type_user, $menu_handler, &$tabMenu=null)
|
function menuLeftCharger($newmenu, $mainmenu, $myleftmenu, $type_user, $menu_handler, &$tabMenu=null)
|
||||||
{
|
{
|
||||||
@ -496,12 +502,13 @@ class Menubase
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load entries found in database in a menu array
|
* Load entries found in database in a menu array.
|
||||||
* @param $myleftmenu Value for left that defined leftmenu
|
*
|
||||||
* @param $type_user 0=Internal,1=External,2=All
|
* @param string $myleftmenu Value for left that defined leftmenu
|
||||||
* @param $menu_handler Name of menu_handler used (auguria, eldy...)
|
* @param int $type_user 0=Internal,1=External,2=All
|
||||||
* @param $tabMenu If array with menu entries already load, we put this array here (in most cases, it's empty)
|
* @param string $menu_handler Name of menu_handler used (auguria, eldy...)
|
||||||
* @return int >0 if OK, <0 if KO
|
* @param array &$tabMenu If array with menu entries already load, we put this array here (in most cases, it's empty)
|
||||||
|
* @return int >0 if OK, <0 if KO
|
||||||
*/
|
*/
|
||||||
function menuLoad($myleftmenu, $type_user, $menu_handler, &$tabMenu=array())
|
function menuLoad($myleftmenu, $type_user, $menu_handler, &$tabMenu=array())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user