/**
  * 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), 'target_entity_type' => array('name' => 'target_entity_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Target Entity Type'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'contribute'), 'target_entity_id' => array('name' => 'target_entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'supporter_profile_id' => array('name' => 'supporter_profile_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL', 'FKClassName' => 'CRM_Core_DAO_UFGroup'), 'is_approval_needed' => array('name' => 'is_approval_needed', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => 'UL'), 'is_tellfriend_enabled' => array('name' => 'is_tellfriend_enabled', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => 'UL'), 'tellfriend_limit' => array('name' => 'tellfriend_limit', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Tellfriend Limit'), 'default' => 'UL'), 'link_text' => array('name' => 'link_text', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Link Text'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'UL'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'notify_email' => array('name' => 'notify_email', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Notify Email'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'UL'));
     }
     return self::$_fields;
 }
示例#2
0
文件: PCPBlock.php 项目: kidaa30/yes
 /**
  * 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, 'description' => 'PCP block Id', '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, 'description' => 'FK to civicrm_contribution_page.id OR civicrm_event.id', 'required' => true), 'target_entity_type' => array('name' => 'target_entity_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Target Entity Type'), 'description' => 'The type of entity that this pcp targets', 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'contribute'), 'target_entity_id' => array('name' => 'target_entity_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'The entity that this pcp targets', 'required' => true), 'supporter_profile_id' => array('name' => 'supporter_profile_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'FK to civicrm_uf_group.id. Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?', 'default' => 'NULL', 'FKClassName' => 'CRM_Core_DAO_UFGroup'), 'owner_notify_id' => array('name' => 'owner_notify_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Owner Notification'), 'description' => 'FK to civicrm_option_group with name = PCP owner notifications', 'html' => array('type' => 'Radio'), 'pseudoconstant' => array('optionGroupName' => 'pcp_owner_notify', 'optionEditPath' => 'civicrm/admin/options/pcp_owner_notify')), 'is_approval_needed' => array('name' => 'is_approval_needed', 'type' => CRM_Utils_Type::T_BOOLEAN, 'description' => 'Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?', 'default' => 'NULL'), 'is_tellfriend_enabled' => array('name' => 'is_tellfriend_enabled', 'type' => CRM_Utils_Type::T_BOOLEAN, 'description' => 'Does Personal Campaign Page allow using tell a friend?', 'default' => 'NULL'), 'tellfriend_limit' => array('name' => 'tellfriend_limit', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Tellfriend Limit'), 'description' => 'Maximum recipient fields allowed in tell a friend', 'default' => 'NULL'), 'link_text' => array('name' => 'link_text', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Link Text'), 'description' => 'Link text for PCP.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'NULL'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'description' => 'Is Personal Campaign Page Block enabled/active?', 'default' => '1'), 'notify_email' => array('name' => 'notify_email', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Notify Email'), 'description' => 'If set, notification is automatically emailed to this email-address on create/update Personal Campaign Page', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'NULL'));
     }
     return self::$_fields;
 }