/** * 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); }
/** * 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); }
/** * 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); } }
/** * 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); }
/** * 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); }
/** * 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'); }
public function __construct($params = array()) { parent::__construct(); $this->initialize($params); }
public function __construct() { parent::__construct(); $this->_config = $this->fuel->forms->config('stopforumspam'); }
/** * 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'); }
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); } }
/** * 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); } }
public function __construct($params = array()) { parent::__construct($params); $this->fuel->load_model('fuel_settings'); }