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
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
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
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 the content bar from corresponding template
- Returns
- string
Provide an action menu.
- Parameters
-
- Returns
- ContentBar $this Return current instance for method chaining.
Set an icon.
- Parameters
-
- Returns
- ContentBar $this Return current instance for method chaining.
Provide some info text.
- Parameters
-
- Returns
- ContentBar $this Return current instance for method chaining.
Set a table of contents object.
- Parameters
-
- Returns
- ContentBar $this Return current instance for method chaining.
The singleton instance of the container
The documentation for this class was generated from the following file: