function __construct() { ee()->lang->loadfile('fieldpack'); parent::__construct(); require_once PATH_THIRD . 'fieldpack/helper.php'; $this->helper = new Fieldpack_helper(); }
/** * Fieldtype Constructor */ function __construct() { parent::__construct(); // ------------------------------------------- // Prepare Cache // ------------------------------------------- if (!isset($this->EE->session->cache['playa'])) { $this->EE->session->cache['playa'] = array(); } $this->cache =& $this->EE->session->cache['playa']; // ------------------------------------------- // Load the helper // ------------------------------------------- if (!class_exists('Playa_Helper')) { require_once PATH_THIRD . 'playa/helper.php'; } $this->helper = new Playa_Helper(); // ------------------------------------------- // Need to call update()? // ------------------------------------------- if (!$this->EE->db->table_exists('playa_relationships')) { // was Playa 3 installed? $query = $this->EE->db->select('fieldtype_id, version')->where('name', 'playa')->get('fieldtypes'); if ($query->num_rows()) { // call update() $this->update($query->row('version')); // update the version # in exp_fieldtypes $this->EE->db->where('fieldtype_id', $query->row('fieldtype_id'))->update('fieldtypes', array('version' => PLAYA_VER)); } } }
function Eevent_helper_ft() { EE_Fieldtype::__construct(); // Backwards-compatibility with pre-2.6 Localize class $this->format_date_fn = version_compare(APP_VER, '2.6', '>=') ? 'format_date' : 'decode_date'; $this->string_to_timestamp_fn = version_compare(APP_VER, '2.6', '>=') ? 'string_to_timestamp' : 'convert_human_date_to_gmt'; }
/** * Constructor * * @return void */ function Files_ft() { parent::__construct(); // Create addon_name from class name $this->addon_name = strtolower(substr(__CLASS__, 0, -3)); //fetch language $this->EE->lang->loadfile($this->addon_name); }
function Google_maps_ft() { if (version_compare(APP_VER, '2.1.4', '>')) { parent::__construct(); } else { parent::EE_Fieldtype(); } }
/** * Constructor * * @access public */ function __construct() { parent::__construct(); if (session_id() == '') { session_start(); } $this->EE->load->model('file_upload_preferences_model'); }
function Dk_server_file_select_ft() { if (version_compare(APP_VER, '2.1.4', '>')) { parent::__construct(); } else { parent::EE_Fieldtype(); } }
/** * Constructor * * @access public * * Calls the parent constructor * Sets the tiny_mce_config_path using the PATH_THRID variable */ public function __construct() { parent::__construct(); $this->tiny_mce_config_path = PATH_THIRD_THEMES . "nsm_tiny_mce/scripts/tiny_mce_config/"; $this->field_type = $this->addon_id = strtolower(substr(__CLASS__, 0, -3)); if (!isset($this->EE->session->cache[__CLASS__])) { $this->EE->session->cache[__CLASS__]['loaded_configs'] = array(); } }
/** * Fieldtype Constructor * */ function Vz_members_ft() { EE_Fieldtype::__construct(); // Initialize the cache if (!isset($this->EE->session->cache['vz_members'])) { $this->EE->session->cache['vz_members'] = array(); } $this->cache =& $this->EE->session->cache['vz_members']; }
/** * Constructor * * @access public */ function Structure_ft() { EE_Fieldtype::__construct(); $this->sql = new Sql_structure(); if (!$this->sql->module_is_installed()) { return FALSE; } $this->site_pages = $this->sql->get_site_pages(); $this->site_id = $this->EE->config->item('site_id'); }
function __construct() { parent::__construct(); if (!isset($this->EE->session->cache['videolink'])) { $this->EE->session->cache['videolink'] = array(); } $this->cache =& $this->EE->session->cache['videolink']; if (!isset($this->cache['includes'])) { $this->cache['includes'] = array(); } }
/** * Fieldtype Constructor */ function Pt_switch_ft() { parent::__construct(); /** ---------------------------------------- /** Prepare Cache /** ----------------------------------------*/ if (!isset($this->EE->session->cache['pt_switch'])) { $this->EE->session->cache['pt_switch'] = array('includes' => array()); } $this->cache =& $this->EE->session->cache['pt_switch']; }
/** * Constructor * * @access public * * Calls the parent constructor */ public function __construct() { parent::__construct(); $this->EE->load->model('channel_model'); // create a cache if (!isset($this->EE->session->cache[__CLASS__])) { $this->EE->session->cache[__CLASS__] = array(); $this->EE->session->cache[__CLASS__]["entry_data"] = array(); $this->EE->session->cache[__CLASS__]["channel_custom_fields"] = array(); } }
/** * Fieldtype Constructor */ public function __construct() { parent::__construct(); ee()->lang->loadfile('vz_address'); // Cache the array of country names $countries = array(); foreach ($this->country_codes as $country) { $countries[$country] = ee()->lang->line('vz_address_' . $country); } ee()->session->set_cache(__CLASS__, 'countries', $countries); }
/** * Constructor * * @return void */ function Embed_Video_ft() { parent::__construct(); // Create addon_name from class name $this->addon_name = strtolower(substr(__CLASS__, 0, -3)); // Fetch language $this->EE->lang->loadfile($this->addon_name); // Field type libraries $this->_load_libraries(); // Load theme url $this->_theme_url(); }
/** * Constructor (inicialize session & language) * * @return void */ function Hyperlink_ft() { parent::__construct(); // Create addon_name from class name $this->addon_name = strtolower(substr(__CLASS__, 0, -3)); $this->EE->lang->loadfile($this->addon_name); //init caching management global $__HYPERLINK_CACHE; if (!isset($__HYPERLINK_CACHE)) { $__HYPERLINK_CACHE = array("includes" => array()); } $this->cache =& $__HYPERLINK_CACHE; }
/** * Constructor * * @return void */ public function __construct() { parent::__construct(); // ------------------------------------- // Package path // ------------------------------------- ee()->load->add_package_path(PATH_THIRD . $this->package); // ------------------------------------- // Load helper // ------------------------------------- ee()->load->helper($this->package); ee()->lang->loadfile($this->package); }
/** * Constructor * * @access public */ public function __construct() { //is_callable doesn't do is right here, so we need //to use method exists to get a true bearing on it if (method_exists('EE_Fieldtype', '__construct')) { parent::__construct(); } else { parent::EE_Fieldtype(); } $this->EE =& get_instance(); $this->field_id = isset($this->settings['field_id']) ? $this->settings['field_id'] : $this->field_id; $this->field_name = isset($this->settings['field_name']) ? $this->settings['field_name'] : $this->field_name; }
/** * Constructor * * @access public * * Calls the parent constructor */ public function __construct() { if (version_compare(APP_VER, '2.1.4', '>')) { parent::__construct(); } else { parent::EE_Fieldtype(); } $this->prefix = INSTRUCTION_FIELD_MAP . '_'; //load lang file ee()->lang->loadfile(INSTRUCTION_FIELD_MAP); //require settings require 'settings.php'; }
/** * Fieldtype Constructor */ public function __construct() { parent::__construct(); $this->EE->load->library('javascript'); $this->EE->load->library('typography'); if (!function_exists('json_decode')) { $this->load->library('Services_json'); } // Create cache if (!isset($this->EE->session->cache[__CLASS__])) { $this->EE->session->cache[__CLASS__] = array('css_and_js' => FALSE); } $this->cache =& $this->EE->session->cache[__CLASS__]; }
/** * Constructor */ public function __construct() { parent::__construct(); // Load our helper if (!class_exists('ChosenHelper') || !is_a($this->chosen_helper, 'ChosenHelper')) { require_once PATH_THIRD . 'vmg_chosen_member/helper.php'; $this->chosen_helper = new ChosenHelper(); } // Prep cache if (!isset(ee()->session->cache['vmg_chosen_member'])) { ee()->session->cache['vmg_chosen_member'] = array(); } $this->cache =& ee()->session->cache['vmg_chosen_member']; }
/** * Constructor */ function __construct() { parent::__construct(); // get settings require PATH_THIRD . 'expresso/settings' . EXT; // setup cache if (!isset($this->EE->session->cache['expresso'])) { $this->EE->session->cache['expresso'] = array(); } // backwards compabitility for EE < 2.4 if (!defined('URL_THIRD_THEMES')) { define('URL_THIRD_THEMES', $this->EE->config->item('theme_folder_url') . 'third_party/'); define('PATH_THIRD_THEMES', $this->EE->config->item('theme_folder_path') . 'third_party/'); } }
/** * Constructor * * @access public */ function Zoo_visitor_ft() { if (version_compare(APP_VER, '2.6.0', '<')) { parent::EE_Fieldtype(); } else { EE_Fieldtype::__construct(); } $this->EE->load->add_package_path(PATH_THIRD . 'zoo_visitor/'); $this->EE->load->library('zoo_visitor_lib'); $this->EE->load->helper('zoo_visitor'); $this->EE->lang->loadfile('zoo_visitor'); $this->zoo_settings = get_zoo_settings($this->EE); if (REQ == 'CP') { $this->EE->cp->add_to_head('<link rel="stylesheet" href="' . _theme_url($this->EE) . 'css/zoo_visitor.css" type="text/css" media="screen" /> '); } }
/** * Constructor */ function __construct() { parent::__construct(); // Add Package Path $this->EE->load->add_package_path(PATH_THIRD . 'assets/'); // ------------------------------------------- // Prepare Cache // ------------------------------------------- if (!isset($this->EE->session->cache['assets'])) { $this->EE->session->cache['assets'] = array(); } $this->cache =& $this->EE->session->cache['assets']; // ------------------------------------------- // Get lib // ------------------------------------------- $this->EE->load->library('assets_lib'); }
/** * Fieldtype Constructor */ function __construct() { parent::__construct(); // Make RTE available only if EE version is at least 2.5.3 and it is actually installed if (is_null(self::$_RTE_installed)) { self::$_RTE_installed = version_compare(APP_VER, '2.5.3', '>=') && $this->EE->db->select('fieldtype_id')->where('name', 'rte')->get('fieldtypes')->row(); } if (self::$_RTE_installed) { $this->_bundled_celltypes[] = 'rte'; } // ------------------------------------------- // Prepare Cache // ------------------------------------------- if (!isset($this->EE->session->cache['matrix'])) { $this->EE->session->cache['matrix'] = array('celltypes' => array()); } $this->cache =& $this->EE->session->cache['matrix']; }
/** * Constructor * * @access public * * Calls the parent constructor */ public function __construct() { if (version_compare(APP_VER, '2.1.4', '>')) { parent::__construct(); } else { parent::EE_Fieldtype(); } if ($this->EE->input->cookie('cp_last_site_id')) { $this->site_id = $this->EE->input->cookie('cp_last_site_id'); } else { if ($this->EE->input->get_post('site_id')) { $this->site_id = $this->EE->input->get_post('site_id'); } else { $this->site_id = $this->EE->config->item('site_id'); } } $this->EE->load->add_package_path(PATH_THIRD . 'editor/'); $this->EE->lang->loadfile('editor'); $this->EE->load->library('editor_helper'); $this->EE->config->load('editor_config'); $this->cache = array(); }
/** * Constructor * * @access public * * Calls the parent constructor */ public function __construct() { if (version_compare(APP_VER, '2.1.4', '>')) { parent::__construct(); } else { parent::EE_Fieldtype(); } if ($this->EE->input->cookie('cp_last_site_id')) { $this->site_id = $this->EE->input->cookie('cp_last_site_id'); } else { if ($this->EE->input->get_post('site_id')) { $this->site_id = $this->EE->input->get_post('site_id'); } else { $this->site_id = $this->EE->config->item('site_id'); } } $this->EE->load->add_package_path(PATH_THIRD . 'channel_files/'); $this->EE->lang->loadfile('channel_files'); $this->EE->load->library('channel_files_helper'); $this->EE->load->model('channel_files_model'); $this->EE->channel_files_helper->define_theme_url(); $this->EE->config->load('cf_config'); }
/** * Constructor * * @access public */ function __construct() { parent::__construct(); ee()->load->library('file_field'); }
public function __construct() { parent::__construct(); ee()->lang->loadfile('fieldtypes'); ee()->load->model('grid_model'); }
/** * Constructor * * @access public */ function __construct() { parent::__construct(); ee()->load->helper('custom_field'); }