/** * Constructor * * @access public * @return void */ function __construct() { // Call parent constructor parent::__construct(); // Initialize this model $this->initialize('seed_channel', 'seed_id', array()); }
/** * Constructor * * @access public * @return void */ function __construct() { // Call parent constructor parent::__construct(); // Initialize this model $this->initialize('seed_generator', 'generator_id', array()); }
/** * Constructor: sets EE instance * * @access public * @return null */ public function __construct() { if (!function_exists('ee')) { function ee() { return get_instance(); } } // Load base model ee()->load->library('Seed_model'); // Load other models Seed_model::load_models(); }
/** * Constructor: sets EE instance * * @access public * @return null */ public function __construct() { if (!function_exists('ee')) { function ee() { return get_instance(); } } // Define the package path ee()->load->add_package_path(PATH_THIRD . 'Seed'); // Load libraries... ee()->load->library('Seed_model'); // Load other models Seed_model::load_models(); }
function __construct() { if (!function_exists('ee')) { function ee() { return get_instance(); } } $this->module_name = strtolower(str_replace('_mcp', '', get_class($this))); $this->base = str_replace('&D=', '&D=', BASE . '&C=addons_modules&M=show_module_cp&module=' . $this->module_name); $this->data['base_url'] = $this->base; $controls = array(); ee()->cp->set_right_nav($controls); // Load helper ee()->load->helper('Seed'); // Load Seed base model ee()->load->library('Seed_model'); // Load other models Seed_model::load_models(); }