ConsoleOnlyRenderDecorator Class Reference
[Console]
Return 403 if not invoked from console, effectively forcing users to use the console. More...
Inheritance diagram for
ConsoleOnlyRenderDecorator:
Public Member Functions |
|
render_content ($page_data) | |
Render content. |
Detailed Description
Return 403 if not invoked from console, effectively forcing users to use the console.
Definition at line 9 of file consoleonlyrenderdecorator.cls.php.
Member Function Documentation
ConsoleOnlyRenderDecorator::render_content | ( | $ | page_data | ) |
Render content.
- Parameters:
-
PageData $page_data
- Returns:
- void
Reimplemented from RenderDecoratorBase.
Definition at line 16 of file consoleonlyrenderdecorator.cls.php.
00016 { 00017 if (!class_exists('Console') || !Console::is_console_request()) { 00018 $page_data->status_code = CONTROLLER_ACCESS_DENIED; 00019 } 00020 else { 00021 parent::render_content($page_data); 00022 } 00023 }
The documentation for this class was generated from the following file:
- gyro/modules/console/controller/base/renderdecorators/consoleonlyrenderdecorator.cls.php