mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 13:01:09 -05:00
git-subtree-dir: TriviaTime git-subtree-mainline: 3551587ecdefc75e34b8b2a87d91a466bdf4c764 git-subtree-split: ae216897cd9c45259853c3f84eae826f344482aa
55 lines
1.2 KiB
PHP
55 lines
1.2 KiB
PHP
<?php
|
|
class Controller
|
|
{
|
|
protected $container;
|
|
|
|
public function __construct($container) {
|
|
$this->container = $container;
|
|
}
|
|
|
|
public function getContainer() {
|
|
return $this->container();
|
|
}
|
|
|
|
protected function redirect($page) {
|
|
$this->container->redirect($page);
|
|
}
|
|
|
|
protected function setTitle($title) {
|
|
$this->container->setTitle($title);
|
|
}
|
|
|
|
protected function render($page, $args=array(), $useTemplate=true) {
|
|
$this->container->render($page, $args, $useTemplate);
|
|
}
|
|
|
|
protected function getNotice($notice) {
|
|
return $this->container->getNotice();
|
|
}
|
|
|
|
protected function clearNotice() {
|
|
$this->container->clearNotice();
|
|
}
|
|
|
|
protected function setNotice($notice) {
|
|
$this->container->setNotice($notice);
|
|
}
|
|
|
|
protected function getError($error) {
|
|
return $this->container->getError();
|
|
}
|
|
|
|
protected function clearError() {
|
|
$this->container->clearError();
|
|
}
|
|
|
|
protected function setError($error) {
|
|
$this->container->setError($error);
|
|
}
|
|
|
|
protected function render404() {
|
|
$this->container->set404();
|
|
$this->container->render404();
|
|
}
|
|
}
|