PHPDoc & code cleanup

This commit is contained in:
Molkobain
2020-07-18 10:35:47 +02:00
parent 10a14a3844
commit ec70d3546d
4 changed files with 23 additions and 3 deletions

View File

@@ -702,6 +702,10 @@ JS
);
}
/**
* @inheritDoc
* @throws \Exception
*/
protected function LoadTheme()
{
// TODO: Remove light-grey when development of Full Moon is done.
@@ -1787,7 +1791,6 @@ EOF;
}
}
/**
* Adds in the page a container with the header_message CSS class
*

View File

@@ -247,6 +247,7 @@ class ApplicationMenu
*
* @return array
* @throws \DictExceptionMissingString
* @throws \Exception
* @since 2.8.0
*/
public static function GetSubMenuNodes($sMenuGroupIdx, $aExtraParams = array())
@@ -658,7 +659,6 @@ abstract class MenuNode
/**
* @return string
* @throws DictExceptionMissingString
*/
public function GetTitle()
{
@@ -667,7 +667,6 @@ abstract class MenuNode
/**
* @return string
* @throws DictExceptionMissingString
*/
public function GetLabel()
{

View File

@@ -848,6 +848,11 @@ class WebPage implements Page
}
}
/**
* Return the HTML base tag
*
* @return string
*/
protected function get_base_tag()
{
$sTag = '';

View File

@@ -1,6 +1,19 @@
<?php
/**
* Class ItopHubMenusHandler
*
* @author Denis Flaven <denis.flaven@combodo.com>
* @since 2.4.1
*/
class ItopHubMenusHandler extends ModuleHandlerAPI
{
/**
* iTop Hub menus are defined in PHP instead of XML to avoid people overloading them through a delta.
* Do NOT refactor them to the XML.
*
* @throws \Exception
*/
public static function OnMenuCreation()
{
// Add the admin menus