$models
$models : array
Required models
Abstract class for implementing a Controller for a Seminary and its concepts.
$agent : \nre\core\Agent
Corresponding Agent
$view : \nre\core\View
View of the Controller
$request : \nre\core\Request
Current request
$response : \nre\core\Response
Current response
__construct(string $layoutName, string $action, \hhu\z\controllers\Agent $agent)
Construct a new Seminary Controller.
| string | $layoutName | Name of the current Layout |
| string | $action | Current Action |
| \hhu\z\controllers\Agent | $agent | Corresponding Agent |
factory(string $controllerName, string $layoutName, string $action, $agent)
Instantiate a Controller (Factory Pattern).
| string | $controllerName | Name of the Controller to instantiate |
| string | $layoutName | Name of the current Layout |
| string | $action | Current Action |
| $agent |
run(\nre\core\Request $request, \nre\core\Response $response)
Run the Controller.
This method executes the Action of the Controller defined by the current Request.
| \nre\core\Request | $request | Current request |
| \nre\core\Response | $response | Current response |
getView() : \nre\core\View
Get the View of the Controller
View of the Controller
checkAchievements(\nre\core\Request $request, \nre\core\Response $response, $checkConditions = null)
Check for newly achieved Achievements.
| \nre\core\Request | $request | |
| \nre\core\Response | $response | |
| $checkConditions |
checkPermission(\nre\core\Request $request, \nre\core\Response $response)
Check user permissions.
| \nre\core\Request | $request | |
| \nre\core\Response | $response |