$components
$components : array
Required components
Controller of the UploadsAgent to process and show user uploads.
$log : \nre\core\Logger
Logger instance
$linker : \nre\core\Linker
Linker instance
$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
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 |
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 |
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 |
seminary(string $seminaryUrl, string $uploadUrl, string $action = null)
Action: seminary.
Display a Seminary upload.
string | $seminaryUrl | URL-title of Seminary |
string | $uploadUrl | URL-name of the upload |
string | $action | Current action (optional) |
charactergroup(string $seminaryUrl, string $groupsgroupUrl, string $groupUrl)
Action: charactergroup.
Display the icon of a Character group.
string | $seminaryUrl | URL-Title of a Seminary |
string | $groupsgroupUrl | URL-Title of a Character groups-group |
string | $groupUrl | URL-Title of a Character group |
__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 |
checkAchievements(\nre\core\Request $request, \nre\core\Response $response, array $checkConditions = null)
Check for newly achieved Achievements.
\nre\core\Request | $request | Current request |
\nre\core\Response | $response | Current response |
array | $checkConditions | Conditions to check |
getView() : \nre\core\View
Get the View of the Controller
View of the Controller
checkPermission(\nre\core\Request $request, \nre\core\Response $response)
Check user permissions.
\nre\core\Request | $request | Current request |
\nre\core\Response | $response | Current response |