📝 Fix some PhpDoc

This commit is contained in:
Pierre Goiffon
2019-06-12 10:39:21 +02:00
parent 6564d84a2f
commit 0f3347f64d
2 changed files with 10 additions and 6 deletions

View File

@@ -910,7 +910,7 @@ EOF
/**
* @param \iTopWebPage $oPage
* @param \WebPage $oPage
* @param bool $bEditMode
*
* @throws \CoreException
@@ -920,8 +920,9 @@ EOF
* @throws \MySQLException
* @throws \MySQLHasGoneAwayException
* @throws \OQLException
* @throws \Exception
*/
function DisplayDetails(WebPage $oPage, $bEditMode = false)
public function DisplayDetails(WebPage $oPage, $bEditMode = false)
{
$sTemplate = Utils::ReadFromFile(MetaModel::GetDisplayTemplate(get_class($this)));
if (!empty($sTemplate))
@@ -943,6 +944,7 @@ EOF
// template not found display the object using the *old style*
$oPage->add('<div id="search-widget-results-outer">');
$this->DisplayBareHeader($oPage, $bEditMode);
/** @var \iTopWebPage $oPage */
$oPage->AddTabContainer(OBJECT_PROPERTIES_TAB);
$oPage->SetCurrentTabContainer(OBJECT_PROPERTIES_TAB);
$oPage->SetCurrentTab(Dict::S('UI:PropertiesTab'));

View File

@@ -125,10 +125,12 @@ function ReloadAndDisplay($oPage, $oObj, $sMessageId = '', $sMessage = '', $sSev
/**
* Displays the details of an object
* @param $oP WebPage Page for the output
* @param $sClass string The name of the class of the object
* @param $oObj DBObject The object to display
* @param $id mixed Identifier of the object (name or ID)
*
* @param WebPage $oP Page for the output
* @param string $sClass The name of the class of the object
* @param \cmdbAbstractObject $oObj The object to display
* @param mixed $id Identifier of the object (name or ID)
*
* @throws \CoreException
* @throws \DictExceptionMissingString
* @throws \SecurityException