This commit is contained in:
Laurent Destailleur 2026-04-08 03:23:03 +02:00
parent 8d9720d7b7
commit f16251abe2
3 changed files with 19 additions and 25 deletions

View file

@ -31,7 +31,7 @@ class Documentation
/**
* Views
*
* @var array|array<int,string>
* @var array{}|array<int,string>
*/
public $view = array();
@ -76,9 +76,9 @@ class Documentation
}
/**
* Set Documentation Menu
* Set Documentation Menu
*
* @return mixed false if error, void if no errors
* @return boolean False if error, true if OK
*/
private function setMenu()
{
@ -302,6 +302,8 @@ class Documentation
if ($reshook < 0) {
return false;
}
return true;
}
/**
@ -376,10 +378,10 @@ class Documentation
}
/**
* Recursive function to set Menu
* Recursive function to set Menu
*
* @param array<string, array{url?: string, icon?: string, summary?: array<string,string>, submenu?: array<string,array>}> $menu Menu entry or submenu
* @param int $level level of menu
* @param array<string, array{url?: string, icon?: string, summary?: array<string,string>, submenu?: array<string,array>}> $menu Menu entry or submenu
* @param int $level Level of menu
* @return void
*/
private function displayMenu($menu, $level = 0)
@ -471,10 +473,10 @@ class Documentation
/**
* Recursive function for Automatic Summary
* Recursive function for Automatic Summary
*
* @param array{summary?: array<string,string>, submenu?: array<string,array>} $menu $this->menu or submenus
* @param int $level level of menu
* @param array{summary?: array<string,string>, submenu?: array<string,array>} $menu Array $this->menu or submenus
* @param int $level Level of menu
* @param int $showsubmenu Show Sub menus: 0 = No, 1 = Yes
* @param int $showsubmenu_summary Show summary of sub menus: 0 = No, 1 = Yes
* @return void

View file

@ -16,14 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* Show extrafields. It also shows fields from hook formAssetAccountancyCode. Need to have the following variables defined:
* $object (asset, assetmodel, ...)
* $assetaccountancycodes
* $action
* $conf
* $langs
*
* $parameters
* Show extrafields. It also shows fields from hook formAssetAccountancyCode.
*/
/**

View file

@ -16,14 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* Show extrafields. It also shows fields from hook formAssetAccountancyCode. Need to have the following variables defined:
* $object (asset, assetmodel, ...)
* $assetaccountancycodes
* $action
* $conf
* $langs
*
* $parameters
* Show extrafields. It also shows fields from hook formAssetAccountancyCode.
*/
/**
@ -32,6 +25,12 @@
* @var Form $form
* @var HookManager $hookmanager
* @var Translate $langs
*
* @var ?Object $object (asset, assetmodel, ...)
* @var AssetAccountancyCodes $assetaccountancycodes
* @var AssetDepreciationOptions $assetdepreciationoptions
* @var string $action
* @var array<string,mixed> $parameters
*/
// Protection to avoid direct call of template