/** * Initialize the configuration options * * @access public * * @return void */ public function initialize($params = array()) { parent::initialize($params); $this->CI->load->config('assets'); $config = $this->CI->config->item('assets'); foreach ($config as $key => $val) { if (method_exists($this, 'set_' . $key)) { $this->{'set_' . $key}($val); } else { if (isset($this->{$key})) { $this->{$key} = $val; } } } }
/** * 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'); }