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


PHP CRM_Member_DAO_MembershipBlock::_fields方法代码示例

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


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

示例1: 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('Membership Block ID'), 'description' => 'Membership Id', 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Block Entity Table'), 'description' => 'Name for Membership Status', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Membership Block Entity ID'), 'description' => 'FK to civicrm_contribution_page.id', 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage'), 'membership_types' => array('name' => 'membership_types', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Block Membership Types'), 'description' => 'Membership types to be exposed by this block', 'maxlength' => 1024, 'size' => CRM_Utils_Type::HUGE), 'membership_type_default' => array('name' => 'membership_type_default', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Membership Block Default Type'), 'description' => 'Optional foreign key to membership_type', 'FKClassName' => 'CRM_Member_DAO_MembershipType'), 'display_min_fee' => array('name' => 'display_min_fee', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Membership Block Display Minimum Fee'), 'description' => 'Display minimum membership fee', 'default' => '1'), 'is_separate_payment' => array('name' => 'is_separate_payment', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Membership Block Is Separate Payment'), 'description' => 'Should membership transactions be processed separately', 'default' => '1'), 'new_title' => array('name' => 'new_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Block New Title'), 'description' => 'Title to display at top of block', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'new_text' => array('name' => 'new_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Membership Block New Text'), 'description' => 'Text to display below title'), 'renewal_title' => array('name' => 'renewal_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Block Renewal Title'), 'description' => 'Title for renewal', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'renewal_text' => array('name' => 'renewal_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Membership Block Renewal Text'), 'description' => 'Text to display for member renewal'), 'is_required' => array('name' => 'is_required', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Required'), 'description' => 'Is membership sign up optional'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Active'), 'description' => 'Is this membership_block enabled', 'default' => '1'));
     }
     return self::$_fields;
 }
开发者ID:kidaa30,项目名称:yes,代码行数:12,代码来源:MembershipBlock.php

示例2: 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), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage'), 'membership_types' => array('name' => 'membership_types', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Types'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'membership_type_default' => array('name' => 'membership_type_default', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Membership Type Default'), 'FKClassName' => 'CRM_Member_DAO_MembershipType'), 'display_min_fee' => array('name' => 'display_min_fee', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Display Min Fee'), 'default' => '1'), 'is_separate_payment' => array('name' => 'is_separate_payment', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => '1'), 'new_title' => array('name' => 'new_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('New Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'new_text' => array('name' => 'new_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('New Text')), 'renewal_title' => array('name' => 'renewal_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Renewal Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'renewal_text' => array('name' => 'renewal_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Renewal Text')), 'is_required' => array('name' => 'is_required', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Required')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Active'), 'default' => '1'));
     }
     return self::$_fields;
 }
开发者ID:hguru,项目名称:224Civi,代码行数:13,代码来源:MembershipBlock.php


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