$adminConfig
$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
Action: Load one or more objects from storage.
obj_type
(string) — The object type, as an identifier for a \Charcoal\Model\ModelInterface.obj_id
(mixed) — The object ID to load.success
(boolean) — TRUE if the object(s) was/were loaded, FALSE in case of any error.collection
(Charcoal\Model\Collection) — One or more of the requested objects, if any.200
— Successful; Object(s) loaded, if any400
— Client error; Invalid request data500
— Server error; Object(s) could not be loaded, if any$adminConfig : \Charcoal\Admin\Config
Store a reference to the admin configuration.
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. |
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
run(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
\Psr\Http\Message\RequestInterface | $request | The request options. |
\Psr\Http\Message\ResponseInterface | $response | The response to return. |
If "obj_id" is passed as $request option.
setModelFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Admin\AdminScript
\Charcoal\Factory\FactoryInterface | $factory | The factory used to create models. |
Chainable
setSiteName(string $name) : \Charcoal\Admin\AdminAction
Set the name of the project.
string | $name | Name of the project. |
Chainable