Definition at line 16 of file ArchiveDetails.php.
Paperyard\Controllers\Rule\ArchiveDetails::__construct |
( |
Twig |
$view, |
|
|
LoggerInterface |
$logger, |
|
|
Messages |
$flash |
|
) |
| |
ArchiveDetails constructor.
- Parameters
-
Twig | $view | |
LoggerInterface | $logger | |
Messages | $flash | |
Definition at line 27 of file ArchiveDetails.php.
registerPlugin($name, $type=PluginType::NORMAL)
Paperyard\Controllers\Rule\ArchiveDetails::__invoke |
( |
Request |
$request, |
|
|
Response |
$response, |
|
|
|
$args |
|
) |
| |
- Parameters
-
Request | $request | |
Response | $response | |
| $args | |
- Returns
- Response|static
Definition at line 42 of file ArchiveDetails.php.
45 $this->rule = \Paperyard\Models\Rule\Archive::find((
int)$request->getAttribute(
'ruleId'));
48 if ($this->rule === null) {
49 $this->flash->addMessage(
'error', _(
'Rule not found.'));
50 return $response->withRedirect(
'/rules/archives');
54 $this->view->render($response,
'rule/archive_details.twig', $this->
render());
Paperyard\Controllers\Rule\ArchiveDetails::render |
( |
| ) |
|
render
- Returns
- array data to render the view
Definition at line 62 of file ArchiveDetails.php.
65 'plugins' => parent::getPlugins(),
66 'rule' => $this->rule,
67 'languageFlag' => parent::getLanguageFlag()
Paperyard\Controllers\Rule\ArchiveDetails::$rule |
|
private |
The documentation for this class was generated from the following file: