/** * Constructor * * @access public * @return null */ public function __construct() { parent::__construct(); // -------------------------------------------- // Default CP Variables // -------------------------------------------- if (REQ == 'CP') { // For 2.0, we have '&D=cp' with BASE and // we want pure characters, so we convert it $this->base = str_replace('&', '&', $this->get_cp_url_base()) . '&C=addons_modules&M=show_module_cp&module=' . $this->lower_name; $this->cached_vars['page_crumb'] = ''; $this->cached_vars['page_title'] = ''; $this->cached_vars['base_uri'] = $this->base; $this->cached_vars['module_menu'] = array(); $this->cached_vars['module_menu_highlight'] = 'module_home'; $this->cached_vars['module_version'] = $this->version; // -------------------------------------------- // Default Crumbs for Module // -------------------------------------------- if (function_exists('lang')) { $this->add_crumb(lang($this->lower_name . '_module_name'), $this->base); } } // -------------------------------------------- // Module Installed and Up to Date? // -------------------------------------------- if (REQ == 'PAGE' and constant(strtoupper($this->lower_name) . '_VERSION') !== NULL and ($this->database_version() == FALSE or $this->version_compare($this->database_version(), '<', constant(strtoupper($this->lower_name) . '_VERSION')))) { $this->disabled = TRUE; if (empty($this->cache['disabled_message']) and !empty(ee()->lang->language[$this->lower_name . '_module_disabled'])) { trigger_error(lang($this->lower_name . '_module_disabled'), E_USER_NOTICE); $this->cache['disabled_message'] = TRUE; } } }
/** * Constructor * * @access public * @return null */ public function __construct() { parent::__construct(); // ------------------------------------- // Module Installed and What Version? // ------------------------------------- if ($this->database_version() == FALSE or $this->version_compare($this->database_version(), '<', CALENDAR_VERSION)) { return; } if (!defined('CALENDAR_EVENTS_CHANNEL_NAME_DEFAULT')) { require_once 'constants.calendar.php'; } $this->default_event_weblog_name = CALENDAR_EVENTS_CHANNEL_NAME_DEFAULT; $this->default_calendar_weblog_name = CALENDAR_CALENDARS_CHANNEL_NAME_DEFAULT; }
/** * Constructor * * @access public * @return null */ function __construct() { parent::__construct(); // -------------------------------------------- // Set Required Extension Variables // -------------------------------------------- //lang loader not loaded? if (!isset(ee()->lang) and !is_object(ee()->lang)) { $this->fetch_language_file($this->lower_name); } $this->name = $this->line($this->lower_name . '_label'); $this->description = $this->line($this->lower_name . '_description'); // ------------------------------------- // module backups // ------------------------------------- if ($this->name == $this->lower_name . '_label') { $this->name = $this->line($this->lower_name . '_module_name'); } if ($this->name == $this->lower_name . '_description') { $this->description = $this->line($this->lower_name . '_module_description'); } // -------------------------------------------- // Extension Table Defaults // -------------------------------------------- $this->extension_defaults = array('class' => $this->extension_name, 'settings' => '', 'priority' => 10, 'version' => $this->version, 'enabled' => 'y'); // -------------------------------------------- // Default CP Variables // -------------------------------------------- if (REQ == 'CP') { // For 2.0, we have '&D=cp' with BASE and // we want pure characters, so we convert it $this->base = str_replace('&', '&', $this->get_cp_url_base()) . '&C=addons_extensions&M=extension_settings&file=' . $this->lower_name; $this->cached_vars['page_crumb'] = ''; $this->cached_vars['page_title'] = ''; $this->cached_vars['base_uri'] = $this->base; $this->cached_vars['extension_menu'] = array(); $this->cached_vars['extension_menu_highlight'] = ''; //install wizard doesn't load lang shortcut if (function_exists('lang')) { $this->add_crumb(lang($this->lower_name . '_label'), $this->cached_vars['base_uri']); } } }
/** * __construct * * @access public * @return object */ public function __construct() { parent::__construct('calendar'); $this->prefs = $this->get_permissions_preferences(); $this->cal_prefs = $this->data->get_module_preferences(); }
/** * Constructor * * @access public * @return null */ public function __construct() { parent::__construct(); $this->actions(); $this->fetch_dynamic_parameters(); }