Class ContentBar ContentBar for page, with optional ActionMenu, Table of contents and breadcrumbs.
- Author
- Thomas Hackl hackl.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e GPL2 or any later version
- Since
- Stud.IP 5.0
◆ __construct()
Private constructor to ensure that the singleton Get() method is always used. The constructor is finalized so that the call to get() will never fail.
- See also
- ContentBar::get
◆ __toString()
Magic method: when ContentBar is used as a string, this will just call the render method, returning a string representation of this object.
- Returns
- string
◆ get()
Returns the instance of this container to ensure there is only one instance.
- Parameters
-
TOCItem | $toc | Table of contents object. |
string | $info | Some information to show, like creation date, author etc. |
Icon | null | $icon | An icon to show in content bar. |
ActionMenu | null | $actionMenu | Optional action menu for page actions. |
- Returns
- ContentBar
◆ render()
Render the content bar from corresponding template
- Returns
- string
◆ setActionMenu()
Provide an action menu.
- Parameters
-
- Returns
- ContentBar $this Return current instance for method chaining.
◆ setIcon()
Set an icon.
- Parameters
-
- Returns
- ContentBar $this Return current instance for method chaining.
◆ setInfo()
Provide some info text.
- Parameters
-
- Returns
- ContentBar $this Return current instance for method chaining.
◆ setTOC()
Set a table of contents object.
- Parameters
-
- Returns
- ContentBar $this Return current instance for method chaining.
◆ $actionMenu
◆ $icon
◆ $infoText
◆ $instance
The singleton instance of the container
◆ $toc
The documentation for this class was generated from the following file: