function Mx_google_map_ft()
 {
     parent::EE_Fieldtype();
     if (defined('SITE_ID') == FALSE) {
         define('SITE_ID', $this->EE->config->item('site_id'));
     }
 }
 function __construct()
 {
     ee()->lang->loadfile('fieldpack');
     parent::__construct();
     require_once PATH_THIRD . 'fieldpack/helper.php';
     $this->helper = new Fieldpack_helper();
 }
 /**
  * Constructor
  *
  * @access	public
  */
 function Structure_ft()
 {
     parent::EE_Fieldtype();
     $this->sql = new Sql_structure();
     $this->site_pages = $this->sql->get_site_pages();
     $this->site_id = $this->EE->config->item('site_id');
 }
 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';
 }
 function Dk_server_file_select_ft()
 {
     if (version_compare(APP_VER, '2.1.4', '>')) {
         parent::__construct();
     } else {
         parent::EE_Fieldtype();
     }
 }
 /**
  * Constructor
  * 
  * @access public
  */
 public function __construct()
 {
     parent::EE_Fieldtype();
     $this->addon_id = strtolower(substr(__CLASS__, 0, -3));
     if (!isset($this->EE->session->cache[$this->addon_id])) {
         $this->EE->session->cache[$this->addon_id]["members"] = array();
     }
 }
 /**
  * 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);
 }
Example #8
0
 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');
 }
 /**
  * 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();
     }
 }
 /**
  * Constructor function.
  *
  * @access  public
  * @return  void
  */
 public function __construct()
 {
     parent::EE_Fieldtype();
     $this->_class = get_class($this);
     $this->_lower_class = strtolower($this->_class);
     $this->_time_format = $this->EE->config->item('time_format');
     $this->postpone_saves = TRUE;
     $this->default_settings = array('date_format' => self::DROPDATE_FMT_UNIX, 'year_range' => '1900-2020', 'show_time' => '');
 }
Example #12
0
 /**
  * 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');
 }
Example #14
0
 /**
  * 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
  * 
  * @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();
     }
 }
Example #16
0
 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();
     }
 }
Example #17
0
 /**
  * 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'];
 }
Example #18
0
 /**
  * Fieldtype Constructor
  */
 function Wygwam_ft()
 {
     parent::EE_Fieldtype();
     $this->helper = new Wygwam_Helper();
     // -------------------------------------------
     //  Prepare Cache
     // -------------------------------------------
     if (!isset($this->EE->session->cache['wygwam'])) {
         $this->EE->session->cache['wygwam'] = array();
     }
     $this->cache =& $this->EE->session->cache['wygwam'];
 }
 /**
  * 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();
 }
Example #20
0
 /**
  * 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);
 }
Example #21
0
 /**
  * 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 (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;
 }
Example #23
0
 /**
  * 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';
 }
Example #24
0
	/**
	 * Fieldtype Constructor
	 */
	function Pt_list_ft()
	{
		parent::EE_Fieldtype();

		/** ----------------------------------------
		/**  Prepare Cache
		/** ----------------------------------------*/

		if (! isset($this->EE->session->cache['pt_list']))
		{
			$this->EE->session->cache['pt_list'] = array('includes' => array());
		}
		$this->cache =& $this->EE->session->cache['pt_list'];
	}
 /**
  * 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'];
 }
 /**
  * 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__];
 }
Example #27
0
 /**
  * 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
  *
  * @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();
 }
Example #30
0
 /**
  * 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');
 }