gyro/core/controller/base/renderdecorators/notfoundrenderdecorator.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Renders a not found (404) result 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Controller 00007 */ 00008 class NotFoundRenderDecorator extends RenderDecoratorBase { 00009 /** 00010 * Initialize this decorator and the data passed 00011 * 00012 * @param PageData $page_data 00013 * @return void 00014 */ 00015 public function initialize($page_data) { 00016 $page_data->set_cache_manager(new ConstantCacheManager('error-404')); 00017 $page_data->status_code = CONTROLLER_NOT_FOUND; 00018 } 00019 00020 /** 00021 * Render content 00022 * 00023 * @param PageData $page_data 00024 * @return void 00025 */ 00026 public function render_content($page_data) { 00027 $page_data->head->title = tr('Page not found', 'core'); 00028 } 00029 } 00030 ?>