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


PHP CRM_Event_DAO_Participant::export方法代码示例

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


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

示例1: array

 /**
  * Combine all the exportable fields from the lower level objects.
  *
  * @param bool $checkPermission
  *
  * @return array
  *   array of exportable Fields
  */
 public static function &exportableFields($checkPermission = TRUE)
 {
     if (!self::$_exportableFields) {
         if (!self::$_exportableFields) {
             self::$_exportableFields = array();
         }
         $participantFields = CRM_Event_DAO_Participant::export();
         $eventFields = CRM_Event_DAO_Event::export();
         $noteField = array('participant_note' => array('title' => 'Participant Note', 'name' => 'participant_note', 'type' => CRM_Utils_Type::T_STRING));
         $participantStatus = array('participant_status' => array('title' => 'Participant Status', 'name' => 'participant_status', 'type' => CRM_Utils_Type::T_STRING));
         $participantRole = array('participant_role' => array('title' => 'Participant Role', 'name' => 'participant_role', 'type' => CRM_Utils_Type::T_STRING));
         $discountFields = CRM_Core_DAO_Discount::export();
         $fields = array_merge($participantFields, $participantStatus, $participantRole, $eventFields, $noteField, $discountFields);
         // add custom data
         $fields = array_merge($fields, CRM_Core_BAO_CustomField::getFieldsForImport('Participant', FALSE, FALSE, FALSE, $checkPermission));
         self::$_exportableFields = $fields;
     }
     return self::$_exportableFields;
 }
开发者ID:kcristiano,项目名称:civicrm-core,代码行数:27,代码来源:Participant.php

示例2: array

 /**
  * combine all the exportable fields from the lower levels object
  *
  * @return array array of exportable Fields
  * @access public
  * @static
  */
 static function &exportableFields()
 {
     if (!self::$_exportableFields) {
         if (!self::$_exportableFields) {
             self::$_exportableFields = array();
         }
         $fields = array();
         $participantFields = CRM_Event_DAO_Participant::export();
         $noteField = array('participant_note' => array('title' => 'Participant Note', 'name' => 'participant_note'));
         $participantStatus = array('participant_status' => array('title' => 'Participant Status', 'name' => 'participant_status'));
         $participantRole = array('participant_role' => array('title' => 'Participant Role', 'name' => 'participant_role'));
         //campaign fields.
         if (isset($participantFields['participant_campaign_id'])) {
             $participantFields['participant_campaign'] = array('title' => ts('Campaign Title'));
         }
         $discountFields = CRM_Core_DAO_Discount::export();
         $fields = array_merge($participantFields, $participantStatus, $participantRole, $noteField, $discountFields);
         // add custom data
         $fields = array_merge($fields, CRM_Core_BAO_CustomField::getFieldsForImport('Participant'));
         self::$_exportableFields = $fields;
     }
     return self::$_exportableFields;
 }
开发者ID:peteainsworth,项目名称:civicrm-4.2.9-drupal,代码行数:30,代码来源:Participant.php

示例3: array

 /**
  * combine all the exportable fields from the lower levels object
  *
  * @return array array of exportable Fields
  * @access public
  */
 function &exportableFields()
 {
     if (!self::$_exportableFields) {
         if (!self::$_exportableFields) {
             self::$_exportableFields = array();
         }
         $fields = array();
         require_once 'CRM/Core/DAO/Note.php';
         $participantFields = CRM_Event_DAO_Participant::export();
         $noteField = array('participant_note' => array('title' => 'Participant Note', 'name' => 'participant_note'));
         $participantStatus = array('participant_status' => array('title' => 'Participant Status', 'name' => 'participant_status'));
         $participantRole = array('participant_role' => array('title' => 'Participant Role', 'name' => 'participant_role'));
         require_once 'CRM/Core/DAO/Discount.php';
         $discountFields = CRM_Core_DAO_Discount::export();
         $fields = array_merge($participantFields, $participantStatus, $participantRole, $noteField, $discountFields);
         // add custom data
         $fields = array_merge($fields, CRM_Core_BAO_CustomField::getFieldsForImport('Participant'));
         self::$_exportableFields = $fields;
     }
     return self::$_exportableFields;
 }
开发者ID:hampelm,项目名称:Ginsberg-CiviDemo,代码行数:27,代码来源:Participant.php

示例4: array

 /**
  * combine all the exportable fields from the lower levels object
  *
  * @return array array of exportable Fields
  * @access public
  * @static
  */
 static function &exportableFields()
 {
     if (!self::$_exportableFields) {
         if (!self::$_exportableFields) {
             self::$_exportableFields = array();
         }
         $fields = array();
         $participantFields = CRM_Event_DAO_Participant::export();
         $noteField = array('participant_note' => array('title' => 'Participant Note', 'name' => 'participant_note'));
         $participantStatus = array('participant_status' => array('title' => 'Participant Status', 'name' => 'participant_status'));
         $participantRole = array('participant_role' => array('title' => 'Participant Role', 'name' => 'participant_role'));
         //CRM-13595 add event id to participant export
         $eventid = array('event_id' => array('title' => 'Event ID', 'name' => 'event_id'));
         $eventtitle = array('event_title' => array('title' => 'Event Title', 'name' => 'event_title'));
         $discountFields = CRM_Core_DAO_Discount::export();
         $fields = array_merge($participantFields, $participantStatus, $participantRole, $eventid, $eventtitle, $noteField, $discountFields);
         // add custom data
         $fields = array_merge($fields, CRM_Core_BAO_CustomField::getFieldsForImport('Participant'));
         self::$_exportableFields = $fields;
     }
     return self::$_exportableFields;
 }
开发者ID:prashantgajare,项目名称:civicrm-core,代码行数:29,代码来源:Participant.php


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