mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 06:28:46 +02:00
iTopWebPage: Move TopBar methods near other layouts' methods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user