/**
  * Initialize the page analysis object
  *
  * Accepts an associative array as input, containing backup preferences.
  * Also will set the values in the config as properties of this object
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 function initialize($params = array())
 {
     parent::initialize($params);
     $this->set_params($this->_config);
     foreach ($this->preload_classes as $class) {
         require_once $class;
     }
 }
예제 #2
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     self::$_instance =& $this;
     $this->fuel =& self::$_instance;
     // for compatibility
     $this->initialize();
 }
예제 #3
0
 /**
  * Initialize the user preferences
  *
  * Accepts an associative array as input, containing display preferences
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 function initialize($params = array())
 {
     parent::initialize($params);
     if (!empty($params)) {
         foreach ($params as $key => $val) {
             $sans_blog_key = substr($key, count('blog_'));
             if (isset($this->{$key})) {
                 $this->{$sans_blog_key} = $val;
             }
         }
     }
     //
     // if ($this->CI->config->item('blog_use_db_table_settings'))
     // {
     // 	$this->_settings = $this->fuel->settings->get('blog');
     // }
     // else
     // {
     // 	$this->_settings = $this->CI->config->item('blog');
     // }
 }
 /**
  * Initialize the backup object
  *
  * Accepts an associative array as input, containing preferences.
  * Also will set the values in the config as properties of this object
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function initialize($params = array())
 {
     parent::initialize($params);
     $this->set_params($this->_config);
 }
 /**
  * Initialize the page analysis object
  *
  * Accepts an associative array as input, containing backup preferences.
  * Also will set the values in the config as properties of this object
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 function initialize($params)
 {
     parent::initialize($params);
     $this->set_params($this->_config);
     $this->CI->load->library('cache');
 }