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


PHP CRM_Core_DAO_CustomGroup::_fields方法代码示例

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


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

示例1: array

 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static 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), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'extends' => array('name' => 'extends', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Extends'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'Contact'), 'extends_entity_column_id' => array('name' => 'extends_entity_column_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'NULL'), 'extends_entity_column_value' => array('name' => 'extends_entity_column_value', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Extends Entity Column Value'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'style' => array('name' => 'style', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Style'), 'enumValues' => 'Tab, Inline'), 'collapse_display' => array('name' => 'collapse_display', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Collapse Display')), 'help_pre' => array('name' => 'help_pre', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Pre'), 'rows' => 4, 'cols' => 80), 'help_post' => array('name' => 'help_post', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Post'), 'rows' => 4, 'cols' => 80), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight'), 'required' => true, 'default' => '1'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN), 'table_name' => array('name' => 'table_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Table Name'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_multiple' => array('name' => 'is_multiple', 'type' => CRM_Utils_Type::T_BOOLEAN), 'min_multiple' => array('name' => 'min_multiple', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Min Multiple')), 'max_multiple' => array('name' => 'max_multiple', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Max Multiple')), 'collapse_adv_display' => array('name' => 'collapse_adv_display', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Collapse Adv Display')), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Custom Group Created Date')), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }
开发者ID:hguru,项目名称:224Civi,代码行数:13,代码来源:CustomGroup.php

示例2: 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), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'extends' => array('name' => 'extends', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Extends'), 'default' => 'Contact', 'enumValues' => 'Contact, Individual, Household, Organization, Location, Address,
    Contribution, Activity, Relationship, Group, Membership, Participant,
    Event, Grant, Pledge, Case'), 'extends_entity_column_id' => array('name' => 'extends_entity_column_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL'), 'extends_entity_column_value' => array('name' => 'extends_entity_column_value', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Extends Entity Column Value'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'style' => array('name' => 'style', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Style'), 'enumValues' => 'Tab, Inline'), 'collapse_display' => array('name' => 'collapse_display', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Collapse Display')), 'help_pre' => array('name' => 'help_pre', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Pre'), 'rows' => 4, 'cols' => 80), 'help_post' => array('name' => 'help_post', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Post'), 'rows' => 4, 'cols' => 80), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight'), 'required' => true, 'default' => ''), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN), 'table_name' => array('name' => 'table_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Table Name'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_multiple' => array('name' => 'is_multiple', 'type' => CRM_Utils_Type::T_BOOLEAN), 'min_multiple' => array('name' => 'min_multiple', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Min Multiple')), 'max_multiple' => array('name' => 'max_multiple', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Max Multiple')), 'collapse_adv_display' => array('name' => 'collapse_adv_display', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Collapse Adv Display')), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Custom Group Created Date')));
     }
     return self::$_fields;
 }
开发者ID:hampelm,项目名称:Ginsberg-CiviDemo,代码行数:15,代码来源:CustomGroup.php

示例3: 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('Custom Group ID'), 'description' => 'Unique Custom Group ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Custom Group Name'), 'description' => 'Variable name/programmatic handle for this group.', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Custom Group Title'), 'description' => 'Friendly Name.', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'extends' => array('name' => 'extends', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Custom Group Extends'), 'description' => 'Type of object this group extends (can add other options later e.g. contact_address, etc.).', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'Contact'), 'extends_entity_column_id' => array('name' => 'extends_entity_column_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Custom Group Subtype List'), 'description' => 'FK to civicrm_option_value.id (for option group custom_data_type.)', 'default' => 'NULL'), 'extends_entity_column_value' => array('name' => 'extends_entity_column_value', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Custom Group Subtype'), 'description' => 'linking custom group for dynamic object', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'style' => array('name' => 'style', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Custom Group Style'), 'description' => 'Visual relationship between this form and its parent.', 'maxlength' => 15, 'size' => CRM_Utils_Type::TWELVE, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::customGroupStyle')), 'collapse_display' => array('name' => 'collapse_display', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Collapse Custom Group?'), 'description' => 'Will this group be in collapsed or expanded mode on initial display ?'), 'help_pre' => array('name' => 'help_pre', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Custom Group Pre Text'), 'description' => 'Description and/or help text to display before fields in form.', 'rows' => 4, 'cols' => 80, 'html' => array('type' => 'TextArea')), 'help_post' => array('name' => 'help_post', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Custom Group Post Text'), 'description' => 'Description and/or help text to display after fields in form.', 'rows' => 4, 'cols' => 80, 'html' => array('type' => 'TextArea')), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order'), 'description' => 'Controls display order when multiple extended property groups are setup for the same class.', 'required' => true, 'default' => '1'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Custom Group Is Active?'), 'description' => 'Is this property active?'), 'table_name' => array('name' => 'table_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Table Name'), 'description' => 'Name of the table that holds the values for this group.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_multiple' => array('name' => 'is_multiple', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Supports Multiple Records'), 'description' => 'Does this group hold multiple values?'), 'min_multiple' => array('name' => 'min_multiple', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Minimum Multiple Records'), 'description' => 'minimum number of multiple records (typically 0?)'), 'max_multiple' => array('name' => 'max_multiple', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Maximum Multiple Records'), 'description' => 'maximum number of multiple records, if 0 - no max'), 'collapse_adv_display' => array('name' => 'collapse_adv_display', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Collapse Group Display'), 'description' => 'Will this group be in collapsed or expanded mode on advanced search display ?'), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Custom Group Created By'), 'description' => 'FK to civicrm_contact, who created this custom group', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Custom Group Created Date'), 'description' => 'Date and time this custom group was created.'), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Reserved Group?'), 'description' => 'Is this a reserved Custom Group?'));
     }
     return self::$_fields;
 }
开发者ID:agroknow,项目名称:mermix,代码行数:12,代码来源:CustomGroup.php


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