iTopWebPage: Move TopBar methods near other layouts' methods

This commit is contained in:
Molkobain
2021-04-24 15:16:25 +02:00
parent 4a28aa316f
commit 03fcc94b1f

View File

@@ -525,6 +525,29 @@ JS
return NavigationMenuFactory::MakeStandard();
}
/**
* @return \Combodo\iTop\Application\UI\Base\Layout\TopBar\TopBar
* @uses static::$oTopBarLayout
* @since 3.0.0
*/
public function GetTopBarLayout()
{
return $this->oTopBarLayout;
}
/**
* @param \Combodo\iTop\Application\UI\Base\Layout\TopBar\TopBar $oTopBarLayout
*
* @return $this
* @uses static::$oTopBarLayout
* @since 3.0.0
*/
public function SetTopBarLayout(TopBar $oTopBarLayout)
{
$this->oTopBarLayout = $oTopBarLayout;
return $this;
}
/**
* Set the content layout (main content, [side content,] manually added content, ...)
* This function is public as the developer needs to be able to set how the content will be displayed.
@@ -1178,26 +1201,6 @@ EOF
$this->AddUiBlock($oAlert);
}
/**
* @return TopBar
*/
public function GetTopBarLayout(): TopBar
{
return $this->oTopBarLayout;
}
/**
* @param TopBar $oTopBarLayout
*
* @return iTopWebPage
*/
public function SetTopBarLayout(TopBar $oTopBarLayout): iTopWebPage
{
$this->oTopBarLayout = $oTopBarLayout;
return $this;
}
/**
*
* @return BlockPrintHeader