NotFoundRenderDecorator Class Reference
[Controller]
Renders a not found (404) result. More...
Inheritance diagram for
NotFoundRenderDecorator:
Public Member Functions |
|
initialize ($page_data) | |
Initialize this decorator and the data
passed. |
|
render_content ($page_data) | |
Render content. |
Detailed Description
Renders a not found (404) result.
Definition at line 8 of file notfoundrenderdecorator.cls.php.
Member Function Documentation
NotFoundRenderDecorator::initialize | ( | $ | page_data | ) |
Initialize this decorator and the data passed.
- Parameters:
-
PageData $page_data
- Returns:
- void
Reimplemented from RenderDecoratorBase.
Definition at line 15 of file notfoundrenderdecorator.cls.php.
00015 { 00016 $page_data->set_cache_manager(new ConstantCacheManager('error-404')); 00017 $page_data->status_code = CONTROLLER_NOT_FOUND; 00018 }
NotFoundRenderDecorator::render_content | ( | $ | page_data | ) |
Render content.
- Parameters:
-
PageData $page_data
- Returns:
- void
Reimplemented from RenderDecoratorBase.
Definition at line 26 of file notfoundrenderdecorator.cls.php.
00026 { 00027 $page_data->head->title = tr('Page not found', 'core'); 00028 }
The documentation for this class was generated from the following file:
- gyro/core/controller/base/renderdecorators/notfoundrenderdecorator.cls.php