mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
N°3477 - Rename methods of the new iPageUIBlockExtension API
This commit is contained in:
@@ -1096,26 +1096,26 @@ interface iPageUIExtension
|
||||
*/
|
||||
interface iPageUIBlockExtension
|
||||
{
|
||||
/**
|
||||
* Add content to the "admin banner"
|
||||
*
|
||||
* @return iUIBlock|null The Block to add into the page
|
||||
*/
|
||||
public function GetBannerBlock();
|
||||
|
||||
/**
|
||||
* Add content to the header of the page
|
||||
*
|
||||
* @return iUIBlock The Block to add into the page
|
||||
* @return iUIBlock|null The Block to add into the page
|
||||
*/
|
||||
public function GetNorthPaneBlock();
|
||||
public function GetHeaderBlock();
|
||||
|
||||
/**
|
||||
* Add content to the footer of the page
|
||||
*
|
||||
* @return iUIBlock The Block to add into the page
|
||||
* @return iUIBlock|null The Block to add into the page
|
||||
*/
|
||||
public function GetSouthPaneBlock();
|
||||
|
||||
/**
|
||||
* Add content to the "admin banner"
|
||||
*
|
||||
* @return iUIBlock The Block to add into the page
|
||||
*/
|
||||
public function GetBannerBlock();
|
||||
public function GetFooterBlock();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1163,22 +1163,6 @@ abstract class AbstractPageUIExtension implements iPageUIExtension
|
||||
*/
|
||||
abstract class AbstractPageUIBlockExtension implements iPageUIBlockExtension
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function GetNorthPaneBlock()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function GetSouthPaneBlock()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
@@ -1187,6 +1171,21 @@ abstract class AbstractPageUIBlockExtension implements iPageUIBlockExtension
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function GetHeaderBlock()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function GetFooterBlock()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -797,7 +797,7 @@ HTML;
|
||||
/** @var \iPageUIBlockExtension $oExtensionInstance */
|
||||
foreach (MetaModel::EnumPlugins('iPageUIBlockExtension') as $oExtensionInstance)
|
||||
{
|
||||
$oBlock = $oExtensionInstance->GetNorthPaneBlock();
|
||||
$oBlock = $oExtensionInstance->GetHeaderBlock();
|
||||
if ($oBlock) {
|
||||
$oHeader->AddSubBlock($oBlock);
|
||||
}
|
||||
@@ -844,7 +844,7 @@ HTML;
|
||||
// Call the extensions to add content to the page, warning they can also add styles or scripts through as they have access to the \iTopWebPage
|
||||
/** @var \iPageUIBlockExtension $oExtensionInstance */
|
||||
foreach (MetaModel::EnumPlugins('iPageUIBlockExtension') as $oExtensionInstance) {
|
||||
$oBlock = $oExtensionInstance->GetSouthPaneBlock();
|
||||
$oBlock = $oExtensionInstance->GetFooterBlock();
|
||||
if ($oBlock) {
|
||||
$oFooter->AddSubBlock($oBlock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user