CommandsRouteRenderDecorator Class Reference
[Controller]
A render decorator that checks for validation tokens. More...
Inheritance diagram for
CommandsRouteRenderDecorator:
Public Member Functions |
|
initialize ($page_data) | |
Initialize this decorator and the data
passed. |
Detailed Description
A render decorator that checks for validation tokens.
Used with Commands Processing Routes
Definition at line 12 of file commandsrouterenderdecorator.cls.php.
Member Function Documentation
CommandsRouteRenderDecorator::initialize | ( | $ | page_data | ) |
Initialize this decorator and the data passed.
- Parameters:
-
PageData $page_data
- Returns:
- void
Reimplemented from RenderDecoratorBase.
Definition at line 19 of file commandsrouterenderdecorator.cls.php.
00019 { 00020 Load::tools('formhandler'); 00021 $formhandler = new FormHandler('process_commands'); 00022 $err = $formhandler->validate($_GET); 00023 if ($err->is_error()) { 00024 History::go_to(0, $err); 00025 exit; 00026 } 00027 00028 parent::initialize($page_data); 00029 }
The documentation for this class was generated from the following file:
- gyro/core/controller/base/renderdecorators/commandsrouterenderdecorator.cls.php