/** * Constructor * * @access public * @param mixed Array with settings or FALSE * @return null */ public function __construct($settings = array()) { // Get global instance parent::__construct(); // Force settings array if (!is_array($settings)) { $settings = array(); } // Set settings $this->settings = array_merge($this->default_settings, $settings); }
/** * Constructor * * @access public * @return void */ public function __construct() { // ------------------------------------- // Call parent constructor // ------------------------------------- parent::__construct(); // ------------------------------------- // Define base url for module // ------------------------------------- $this->set_base_url(); // -------------------------------------- // Add themes url for images // -------------------------------------- $this->data['themes_url'] = ee()->config->slash_item('theme_folder_url'); // -------------------------------------- // Load JS lib // -------------------------------------- ee()->load->library('javascript'); }