Exemplo n.º 1
0
 /**
  * Constructor
  *
  * The constructor should be called all the way up the inheritance tree.
  * Here, the CRUD methods are all set as $login_required and the default
  * $base_view_dir is set if it hasn't been already.
  *
  * It is called implicitly on object instantiation.
  *
  * @access private
  * @return null
  */
 function __construct()
 {
     if (is_null($this->base_view_dir)) {
         $this->base_view_dir = ROOT_DIR;
     }
     if (is_array($this->login_required)) {
         $this->login_required = array_merge(array('viewlist', 'show', 'create', 'insert', 'edit', 'update', 'delete'), $this->login_required);
     }
     parent::__construct();
 }