예제 #1
0
 /**
  * Constructor
  *
  * Accepts an associative array as input, containing preferences (optional)
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function __construct($params = array())
 {
     parent::__construct();
     $this->CI->load->library('cache');
     $this->_cache =& $this->CI->cache;
     $this->initialize($params);
 }
예제 #2
0
 /**
  * Constructor
  *
  * Accepts an associative array as input, containing preferences (optional)
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function __construct($params = array())
 {
     parent::__construct();
     $this->CI->load->helper('cookie');
     $this->CI->load->library('user_agent');
     $this->initialize($params);
 }
예제 #3
0
 /**
  * Constructor
  *
  * Accepts an associative array as input, containing preferences (optional)
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function __construct($params = array())
 {
     parent::__construct();
     $this->CI->load->helper('inflector');
     $this->CI->load->helper('file');
     $this->initialize($params);
 }
 /**
  * Constructor
  *
  * Accepts an associative array as input, containing preferences (optional)
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function __construct($params = array())
 {
     parent::__construct();
     // initialize object if any parameters
     if (!empty($params)) {
         $this->initialize($params);
     }
 }
예제 #5
0
 /**
  * Constructor
  *
  * The constructor can be passed an array of config values.
  */
 public function __construct($params = array())
 {
     parent::__construct();
     if (empty($params)) {
         $params['name'] = 'posts';
     }
     $this->initialize($params);
 }
예제 #6
0
 /**
  * Constructor
  *
  * Accepts an associative array as input, containing preferences (optional)
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function __construct($params = array())
 {
     parent::__construct();
     $this->CI->load->helper('directory');
     $this->CI->load->helper('file');
     $this->CI->load->library('upload');
     $this->CI->lang->load('upload');
     // loaded here as well so we can use some of the lang messages
     $this->CI->fuel->load_model('fuel_assets');
     $this->initialize($params);
 }
예제 #7
0
 /**
  * Constructor
  *
  * Accepts an associative array as input, containing preferences (optional)
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function __construct($params = array())
 {
     parent::__construct($params);
     // load all the helpers we need
     $this->CI->load->library('form');
     $this->CI->load->helper('ajax');
     $this->CI->load->helper('date');
     $this->CI->load->helper('cookie');
     $this->CI->load->helper('inflector');
     $this->CI->load->helper('text');
     $this->CI->load->helper('convert');
     //$this->CI->load->module_helper(FUEL_FOLDER, 'fuel');... alternative syntax
     $this->fuel->load_helper('fuel');
 }
예제 #8
0
 public function __construct($params = array())
 {
     parent::__construct();
     $this->initialize($params);
 }
 public function __construct()
 {
     parent::__construct();
     $this->_config = $this->fuel->forms->config('stopforumspam');
 }
예제 #10
0
 /**
  * Constructor
  *
  * Accepts an associative array as input, containing preferences (optional)
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function __construct($params = array())
 {
     parent::__construct($params);
     $this->CI->load->helper('cookie');
 }
예제 #11
0
 public function __construct($params = array())
 {
     parent::__construct($params);
     // if the module name is still empty, then we will grab it from the class name
     if (empty($this->module)) {
         $this->module = substr(get_class($this), 5);
     }
 }
예제 #12
0
 /**
  * Constructor
  *
  * Accepts an associative array as input, containing preferences (optional)
  *
  * @access	public
  * @param	array	config preferences
  * @return	void
  */
 public function __construct($params = array())
 {
     parent::__construct();
     $this->CI->load->helper('cookie');
     // cookie check... would be nice to remove to speed things up a little bit
     if (is_fuelified()) {
         $this->_fuelified = TRUE;
         $this->only_published = FALSE;
     }
     if (!empty($params)) {
         $this->initialize($params);
     }
 }
예제 #13
0
 public function __construct($params = array())
 {
     parent::__construct($params);
     $this->fuel->load_model('fuel_settings');
 }