Source for file Error_Page.php

Documentation is available at Error_Page.php

  1. <?php
  2. /**
  3.  *    LAIKA FRAMEWORK Release Notes:
  4.  *
  5.  *    @filesource     Error_Page.php
  6.  *
  7.  *    @version        0.1.0b
  8.  *    @package        Laika
  9.  *    @subpackage     module
  10.  *    @category       view
  11.  *    @date           2012-05-18 22:00:23 -0400 (Fri, 18 May 2012)
  12.  *
  13.  *    @author         Leonard M. Witzel <witzel@post.harvard.edu>
  14.  *    @copyright      Copyright (c) 2012  Laika Soft <{@link http://oafbot.com}>
  15.  *
  16.  */
  17. /**
  18.  * Laika_Error_Page class.
  19.  * 
  20.  * @extends Laika_Abstract_Page
  21.  */
  22.  
  23.     protected static $instance;
  24.  
  25.     /**
  26.      * add_component function.
  27.      * 
  28.      * @access public
  29.      * @param string $component 
  30.      * @return string 
  31.      */
  32.     public function add_component($component){
  33.         $class_name = __CLASS__;
  34.         $page_name  str_replace(NAME_SPACE,""$class_name,$count 1)
  35.                 
  36.         if($component == "DEFAULT")
  37.             $page_name str_replace('_Page',"_Component",$page_name,$count 1);             
  38.         else           
  39.             $page_name str_replace('_Page','_'.ucfirst(strtolower($component)).'_Component',$page_name,$count 1);
  40.         return dirname(__FILE__).'/'.$page_name.'.php';        
  41.     }
  42. }

Documentation generated on Sat, 19 May 2012 02:16:59 -0400 by phpDocumentor 1.4.4