PHPDoc & code cleanup

This commit is contained in:
Molkobain
2020-08-26 16:31:46 +02:00
parent 7f3c10b69d
commit fa406c1f17
4 changed files with 10 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class Html extends UIBlock
const BLOCK_CODE = 'ibo-html';
const HTML_TEMPLATE_REL_PATH = 'components/html/layout';
/** @var string $sHtml */
/** @var string $sHtml The raw HTML, must be already sanitized */
protected $sHtml;
/**
@@ -51,6 +51,8 @@ class Html extends UIBlock
}
/**
* Return the raw HTML, should have been sanitized
*
* @return string
*/
public function GetHtml()
@@ -59,7 +61,10 @@ class Html extends UIBlock
}
/**
* Set the raw HTML, must be already sanitized
*
* @param string $sHtml
*
* @return $this
*/
public function SetHtml($sHtml)

View File

@@ -57,6 +57,8 @@ class PageContentFactory
$oLayout = new PageContentWithSideContent();
// Add object details layout
// TODO
// Add object activity layout
$oActivityPanel = ActivityPanelFactory::MakeForObjectDetails($oObject);
$oLayout->AddSideBlock($oActivityPanel);

View File

@@ -149,7 +149,7 @@ abstract class UIBlock implements iUIBlock
/**
* @inheritDoc
* @return \Combodo\iTop\Application\UI\UIBlock[]
* @return \Combodo\iTop\Application\UI\iUIBlock[]
*/
public function GetSubBlocks()
{

View File

@@ -80,6 +80,7 @@ interface iUIBlock
/**
* Return an array iUIBlock embedded in this iUIBlock
* Must be an associative array (<BLOCK_ID> => <BLOCK_INSTANCE>)
*
* @return \Combodo\iTop\Application\UI\iUIBlock[]
*/