$feedbacks
$feedbacks : array
Collection of feedback.
Base class for all `admin` Templates.
title
(Translation) - The page titlesubtitle
(Translation) The page subtitleshowHeaderMenu
(bool) - Display the header menu or notheaderMenu
(iterator) - The header menu datashowFooterMenu
(bool) - Display the footer menu or notfooterMenu
(iterator) - The footer menu data$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
addFeedback(string $level, mixed $message) : \Charcoal\Admin\Ui\FeedbackContainerTrait
Add feedback.
string | $level | The feedback level. |
mixed | $message | The feedback message. |
Chainable
clearFeedback() : \Charcoal\Admin\Ui\FeedbackContainerTrait
Remove all feedback from collection.
Chainable
init(\Psr\Http\Message\RequestInterface $request) : boolean
Template's init method is called automatically from `charcoal-app`'s Template Route.
For admin templates, initializations is:
$_GET
\Psr\Http\Message\RequestInterface | $request | The request to initialize. |
setIdent(mixed $ident) : \Charcoal\Admin\AdminTemplate
mixed | $ident | Template identifier. |
Chainable
setLabel(mixed $label) : \Charcoal\Admin\AdminTemplate
mixed | $label | Template label. |
Chainable
setTitle(mixed $title) : \Charcoal\Admin\AdminTemplate
Set the title of the page.
mixed | $title | Template title. |
Chainable
setSubtitle(mixed $subtitle) : \Charcoal\Admin\AdminTemplate
Set the page's sub-title.
mixed | $subtitle | Template subtitle. |
Chainable
setShowTopHeaderMenu(boolean $bool) : \Charcoal\Admin\AdminTemplate
Display or not the top right header menu.
boolean | $bool | Display or not. |
Chainable.
setTopHeaderMenu(array $menu) : \Charcoal\Admin\AdminTemplate
Sets the top right header menu.
array | $menu | Menu as link and labels. |
Chainable.
setShowHeaderMenu(boolean $show) : \Charcoal\Admin\AdminTemplate
boolean | $show | The show header menu flag. |
Chainable
setShowFooterMenu(boolean $show) : \Charcoal\Admin\AdminTemplate
boolean | $show | The show footer menu flag. |
Chainable
setShowSidemenu(boolean $show) : \Charcoal\Admin\AdminTemplate
boolean | $show | The show sidemenu flag. |
Chainable
setSiteName(string $name) : \Charcoal\Admin\AdminTemplate
Set the name of the project.
string | $name | Name of the project. |
Chainable