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


PHP CRM_Core_DAO_Domain::_fields方法代碼示例

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


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

示例1: array

 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'config_backend' => array('name' => 'config_backend', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Config Backend'), 'rows' => 20, 'cols' => 80), 'version' => array('name' => 'version', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Version'), 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM), 'loc_block_id' => array('name' => 'loc_block_id', 'type' => CRM_Utils_Type::T_INT), 'locales' => array('name' => 'locales', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Locales')));
     }
     return self::$_fields;
 }
開發者ID:bhirsch,項目名稱:voipdev,代碼行數:13,代碼來源:Domain.php

示例2: array

 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Domain ID'), 'description' => 'Domain ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Domain Name'), 'description' => 'Name of Domain / Organization', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Domain Description'), 'description' => 'Description of Domain.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'config_backend' => array('name' => 'config_backend', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Domain Configuration'), 'description' => 'Backend configuration.', 'rows' => 20, 'cols' => 80, 'html' => array('type' => 'TextArea')), 'version' => array('name' => 'version', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('CiviCRM Version'), 'description' => 'The civicrm version this instance is running', 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Domain Contact'), 'description' => 'FK to Contact ID. This is specifically not an FK to avoid circular constraints', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'locales' => array('name' => 'locales', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Supported Languages'), 'description' => 'list of locales supported by the current db state (NULL for single-lang install)'), 'locale_custom_strings' => array('name' => 'locale_custom_strings', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Language Customizations'), 'description' => 'Locale specific string overrides', 'rows' => 20, 'cols' => 80, 'html' => array('type' => 'TextArea')));
     }
     return self::$_fields;
 }
開發者ID:kidaa30,項目名稱:yes,代碼行數:12,代碼來源:Domain.php


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