$agent
$agent : \nre\core\Agent
Corresponding Agent
Controller of the MailAgent to generate a mail message.
$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
factory(string $controllerName, string $layoutName, string $action, string $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 |
| string | $agent | Corresponding Agent |
preFilter(\nre\core\Request $request, \nre\core\Response $response)
Prefilter.
| \nre\core\Request | $request | Current request |
| \nre\core\Response | $response | Current response |
postFilter(\nre\core\Request $request, \nre\core\Response $response)
Prefilter that is executed after running the Controller.
| \nre\core\Request | $request | Current request |
| \nre\core\Response | $response | Current response |
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 |
characterregistration(array $receiver, array $seminary, \hhu\z\controllers\arary $user, array $newCharacter)
Action: characterregistration.
Generate a mail message to notify of a new Character registration.
| array | $receiver | User that the message will be send to |
| array | $seminary | Seminary which the Character was created for |
| \hhu\z\controllers\arary | $user | User of the newly registered Character |
| array | $newCharacter | Newly registered Character |
charactersubmission(array $receiver, array $seminary, array $questgroup, array $quest, array $character)
Action: charactersubmission.
Generate a mail message to notify of a new Character submission for a Quest that needs to be valuated.
| array | $receiver | User that the message will be send to |
| array | $seminary | Seminary which the Quest belongs to |
| array | $questgroup | Questgroup of Quest |
| array | $quest | Quest the answer has been submitted for |
| array | $character | Character that send the submission |
charactersubmissionapproved(array $receiver, array $seminary, array $questgroup, array $quest)
Action: charactersubmissionapproved.
Generate a mail message to notify a Character that its submission has been approved.
| array | $receiver | User that the message will be send to |
| array | $seminary | Seminary which the Quest belongs to |
| array | $questgroup | Questgroup of Quest |
| array | $quest | Quest the answer has been submitted for |
__construct(string $layoutName, string $action, \nre\core\Agent $agent)
Construct a new Controller.
| string | $layoutName | Name of the current Layout |
| string | $action | Current Action |
| \nre\core\Agent | $agent | Corresponding Agent |
getView() : \nre\core\View
Get the View of the Controller
View of the Controller