当前位置: 首页>>代码示例>>PHP>>正文


PHP EE_Fieldtype类代码示例

本文整理汇总了PHP中EE_Fieldtype的典型用法代码示例。如果您正苦于以下问题:PHP EE_Fieldtype类的具体用法?PHP EE_Fieldtype怎么用?PHP EE_Fieldtype使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了EE_Fieldtype类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Mx_google_map_ft

 function Mx_google_map_ft()
 {
     parent::EE_Fieldtype();
     if (defined('SITE_ID') == FALSE) {
         define('SITE_ID', $this->EE->config->item('site_id'));
     }
 }
开发者ID:thomasvandoren,项目名称:teentix-site,代码行数:7,代码来源:ft.mx_google_map.php

示例2: Structure_ft

 /**
  * 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');
 }
开发者ID:nigelpeters,项目名称:css-recruitment-ee,代码行数:12,代码来源:ft.structure.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: Dk_server_file_select_ft

 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

示例5: __construct

 /**
  * 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();
     }
 }
开发者ID:newism,项目名称:nsm.member_select.ee_addon,代码行数:13,代码来源:ft.nsm_member_select.php

示例6: Google_maps_ft

 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

示例7: __construct

 /**
  * 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' => '');
 }
开发者ID:thomasvandoren,项目名称:teentix-site,代码行数:15,代码来源:ft.dropdate.php

示例8: 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

示例9: 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

示例10: Wygwam_ft

 /**
  * 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'];
 }
开发者ID:realfluid,项目名称:umbaugh,代码行数:15,代码来源:ft.wygwam.php

示例11: 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

示例12: 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

示例13:

 /**
  * 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

示例14: __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

示例15: __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


注:本文中的EE_Fieldtype类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。