當前位置: 首頁>>代碼示例>>PHP>>正文


PHP EE_Fieldtype::__construct方法代碼示例

本文整理匯總了PHP中EE_Fieldtype::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP EE_Fieldtype::__construct方法的具體用法?PHP EE_Fieldtype::__construct怎麽用?PHP EE_Fieldtype::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在EE_Fieldtype的用法示例。


在下文中一共展示了EE_Fieldtype::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ee

 function __construct()
 {
     ee()->lang->loadfile('fieldpack');
     parent::__construct();
     require_once PATH_THIRD . 'fieldpack/helper.php';
     $this->helper = new Fieldpack_helper();
 }
開發者ID:kentonquatman,項目名稱:iofa,代碼行數:7,代碼來源:fieldpack_fieldtype.php

示例2: array

 /**
  * 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));
         }
     }
 }
開發者ID:realfluid,項目名稱:umbaugh,代碼行數:34,代碼來源:ft.playa.php

示例3: Eevent_helper_ft

 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';
 }
開發者ID:thomasvandoren,項目名稱:teentix-site,代碼行數:7,代碼來源:ft.eevent_helper.php

示例4: strtolower

 /**
  * 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);
 }
開發者ID:nathanvanbakel,項目名稱:EE_Field_Pack,代碼行數:13,代碼來源:ft.files.php

示例5:

 function Google_maps_ft()
 {
     if (version_compare(APP_VER, '2.1.4', '>')) {
         parent::__construct();
     } else {
         parent::EE_Fieldtype();
     }
 }
開發者ID:grimsmath,項目名稱:lavillafdn,代碼行數:8,代碼來源:ft.google_maps.php

示例6:

 /**
  * Constructor
  *
  * @access	public
  */
 function __construct()
 {
     parent::__construct();
     if (session_id() == '') {
         session_start();
     }
     $this->EE->load->model('file_upload_preferences_model');
 }
開發者ID:nathanvanbakel,項目名稱:EE_Field_Pack,代碼行數:13,代碼來源:ft.uploader.php

示例7:

 function Dk_server_file_select_ft()
 {
     if (version_compare(APP_VER, '2.1.4', '>')) {
         parent::__construct();
     } else {
         parent::EE_Fieldtype();
     }
 }
開發者ID:grimsmath,項目名稱:lavillafdn,代碼行數:8,代碼來源:ft.dk_server_file_select.php

示例8: __construct

 /**
  * 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();
     }
 }
開發者ID:newism,項目名稱:nsm.tiny_mce.ee_addon,代碼行數:17,代碼來源:ft.nsm_tiny_mce.php

示例9: Vz_members_ft

 /**
  * 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'];
 }
開發者ID:elivz,項目名稱:vz_members,代碼行數:13,代碼來源:ft.vz_members.php

示例10: Structure_ft

 /**
  * 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');
 }
開發者ID:kentonquatman,項目名稱:canyonwoodridge,代碼行數:15,代碼來源:ft.structure.php

示例11: array

 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();
     }
 }
開發者ID:vaibhavdeore36,項目名稱:videolink,代碼行數:11,代碼來源:ft.videolink.php

示例12: 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'];
 }
開發者ID:pixelandtonic,項目名稱:pt_switch,代碼行數:14,代碼來源:ft.pt_switch.php

示例13: __construct

 /**
  * 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();
     }
 }
開發者ID:newism,項目名稱:nsm.entry_select.ee_addon,代碼行數:18,代碼來源:ft.nsm_entry_select.php

示例14: __construct

 /**
  * 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);
 }
開發者ID:kentonquatman,項目名稱:iofa,代碼行數:14,代碼來源:ft.vz_address.php

示例15: strtolower

 /**
  * 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();
 }
開發者ID:nathanvanbakel,項目名稱:EE_Field_Pack,代碼行數:17,代碼來源:ft.embed_video.php


注:本文中的EE_Fieldtype::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。