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


PHP CRM_Contribute_BAO_Contribution::_exportableFields方法代码示例

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


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

示例1: array

 function &exportableFields()
 {
     if (!self::$_exportableFields) {
         if (!self::$_exportableFields) {
             self::$_exportableFields = array();
         }
         require_once 'CRM/Core/OptionValue.php';
         require_once 'CRM/Contribute/DAO/Product.php';
         require_once 'CRM/Contribute/DAO/ContributionProduct.php';
         require_once 'CRM/Contribute/DAO/ContributionType.php';
         $impFields = CRM_Contribute_DAO_Contribution::export();
         $expFieldProduct = CRM_Contribute_DAO_Product::export();
         $expFieldsContrib = CRM_Contribute_DAO_ContributionProduct::export();
         $typeField = CRM_Contribute_DAO_ContributionType::export();
         $optionField = CRM_Core_OptionValue::getFields($mode = 'contribute');
         $contributionStatus = array('contribution_status' => array('title' => 'Contribution Status', 'name' => 'contribution_status', 'data_type' => CRM_Utils_Type::T_STRING));
         $contributionNote = array('contribution_note' => array('title' => ts('Contribution Note'), 'name' => 'contribution_note', 'data_type' => CRM_Utils_Type::T_TEXT));
         $contributionRecurId = array('contribution_recur_id' => array('title' => ts('Recurring Contributions ID'), 'name' => 'contribution_recur_id', 'where' => 'civicrm_contribution.contribution_recur_id', 'data_type' => CRM_Utils_Type::T_INT));
         $fields = array_merge($impFields, $typeField, $contributionStatus, $optionField, $expFieldProduct, $expFieldsContrib, $contributionNote, $contributionRecurId, CRM_Core_BAO_CustomField::getFieldsForImport('Contribution'));
         self::$_exportableFields = $fields;
     }
     return self::$_exportableFields;
 }
开发者ID:hampelm,项目名称:Ginsberg-CiviDemo,代码行数:23,代码来源:Contribution.php

示例2: array

 /**
  * @return array
  */
 public static function &exportableFields()
 {
     if (!self::$_exportableFields) {
         if (!self::$_exportableFields) {
             self::$_exportableFields = array();
         }
         $impFields = CRM_Contribute_DAO_Contribution::export();
         $expFieldProduct = CRM_Contribute_DAO_Product::export();
         $expFieldsContrib = CRM_Contribute_DAO_ContributionProduct::export();
         $typeField = CRM_Financial_DAO_FinancialType::export();
         $financialAccount = CRM_Financial_DAO_FinancialAccount::export();
         $optionField = CRM_Core_OptionValue::getFields($mode = 'contribute');
         $contributionStatus = array('contribution_status' => array('title' => ts('Contribution Status'), 'name' => 'contribution_status', 'data_type' => CRM_Utils_Type::T_STRING));
         $contributionPage = array('contribution_page' => array('title' => ts('Contribution Page'), 'name' => 'contribution_page', 'where' => 'civicrm_contribution_page.title', 'data_type' => CRM_Utils_Type::T_STRING));
         $contributionNote = array('contribution_note' => array('title' => ts('Contribution Note'), 'name' => 'contribution_note', 'data_type' => CRM_Utils_Type::T_TEXT));
         $contributionRecurId = array('contribution_recur_id' => array('title' => ts('Recurring Contributions ID'), 'name' => 'contribution_recur_id', 'where' => 'civicrm_contribution.contribution_recur_id', 'data_type' => CRM_Utils_Type::T_INT));
         $extraFields = array('contribution_batch' => array('title' => ts('Batch Name')));
         $softCreditFields = array('contribution_soft_credit_name' => array('name' => 'contribution_soft_credit_name', 'title' => 'Soft Credit For', 'where' => 'civicrm_contact_d.display_name', 'data_type' => CRM_Utils_Type::T_STRING), 'contribution_soft_credit_amount' => array('name' => 'contribution_soft_credit_amount', 'title' => 'Soft Credit Amount', 'where' => 'civicrm_contribution_soft.amount', 'data_type' => CRM_Utils_Type::T_MONEY), 'contribution_soft_credit_type' => array('name' => 'contribution_soft_credit_type', 'title' => 'Soft Credit Type', 'where' => 'contribution_softcredit_type.label', 'data_type' => CRM_Utils_Type::T_STRING), 'contribution_soft_credit_contribution_id' => array('name' => 'contribution_soft_credit_contribution_id', 'title' => 'Soft Credit For Contribution ID', 'where' => 'civicrm_contribution_soft.contribution_id', 'data_type' => CRM_Utils_Type::T_INT));
         // CRM-16713 - contribution search by Premiums on 'Find Contribution' form.
         $premiums = array('contribution_product_id' => array('title' => ts('Premium'), 'name' => 'contribution_product_id', 'where' => 'civicrm_product.id', 'data_type' => CRM_Utils_Type::T_INT));
         $fields = array_merge($impFields, $typeField, $contributionStatus, $contributionPage, $optionField, $expFieldProduct, $expFieldsContrib, $contributionNote, $contributionRecurId, $extraFields, $softCreditFields, $financialAccount, $premiums, CRM_Core_BAO_CustomField::getFieldsForImport('Contribution'));
         self::$_exportableFields = $fields;
     }
     return self::$_exportableFields;
 }
开发者ID:nganivet,项目名称:civicrm-core,代码行数:28,代码来源:Contribution.php

示例3: array

 static function &exportableFields()
 {
     if (!self::$_exportableFields) {
         if (!self::$_exportableFields) {
             self::$_exportableFields = array();
         }
         $impFields = CRM_Contribute_DAO_Contribution::export();
         $expFieldProduct = CRM_Contribute_DAO_Product::export();
         $expFieldsContrib = CRM_Contribute_DAO_ContributionProduct::export();
         $typeField = CRM_Financial_DAO_FinancialType::export();
         $financialAccount = CRM_Financial_DAO_FinancialAccount::export();
         $optionField = CRM_Core_OptionValue::getFields($mode = 'contribute');
         $contributionStatus = array('contribution_status' => array('title' => ts('Contribution Status'), 'name' => 'contribution_status', 'data_type' => CRM_Utils_Type::T_STRING));
         $contributionNote = array('contribution_note' => array('title' => ts('Contribution Note'), 'name' => 'contribution_note', 'data_type' => CRM_Utils_Type::T_TEXT));
         $contributionRecurId = array('contribution_recur_id' => array('title' => ts('Recurring Contributions ID'), 'name' => 'contribution_recur_id', 'where' => 'civicrm_contribution.contribution_recur_id', 'data_type' => CRM_Utils_Type::T_INT));
         $extraFields = array('contribution_batch' => array('title' => ts('Batch Name')));
         $fields = array_merge($impFields, $typeField, $contributionStatus, $optionField, $expFieldProduct, $expFieldsContrib, $contributionNote, $contributionRecurId, $extraFields, $financialAccount, CRM_Core_BAO_CustomField::getFieldsForImport('Contribution'));
         self::$_exportableFields = $fields;
     }
     return self::$_exportableFields;
 }
开发者ID:TheCraftyCanvas,项目名称:aegir-platforms,代码行数:21,代码来源:Contribution.php

示例4: flushCache

 /**
  * Reset the various system caches and some important static variables.
  */
 public static function flushCache()
 {
     // flush out all cache entries so we can reload new data
     // a bit aggressive, but livable for now
     $cache = CRM_Utils_Cache::singleton();
     $cache->flush();
     // also reset the various static memory caches
     // reset the memory or array cache
     CRM_Core_BAO_Cache::deleteGroup('contact fields', NULL, FALSE);
     // reset ACL cache
     CRM_ACL_BAO_Cache::resetCache();
     // reset various static arrays used here
     CRM_Contact_BAO_Contact::$_importableFields = CRM_Contact_BAO_Contact::$_exportableFields = CRM_Contribute_BAO_Contribution::$_importableFields = CRM_Contribute_BAO_Contribution::$_exportableFields = CRM_Pledge_BAO_Pledge::$_exportableFields = CRM_Contribute_BAO_Query::$_contributionFields = CRM_Core_BAO_CustomField::$_importFields = CRM_Core_BAO_Cache::$_cache = CRM_Core_DAO::$_dbColumnValueCache = NULL;
     CRM_Core_OptionGroup::flushAll();
     CRM_Utils_PseudoConstant::flushAll();
 }
开发者ID:rollox,项目名称:civicrm-core,代码行数:19,代码来源:System.php

示例5: array

 function &exportableFields()
 {
     if (!self::$_exportableFields) {
         if (!self::$_exportableFields) {
             self::$_exportableFields = array();
         }
         require_once 'CRM/Core/OptionValue.php';
         require_once 'CRM/Contribute/DAO/Product.php';
         require_once 'CRM/Contribute/DAO/ContributionProduct.php';
         require_once 'CRM/Contribute/DAO/ContributionType.php';
         $impFields = CRM_Contribute_DAO_Contribution::import();
         $expFieldProduct = CRM_Contribute_DAO_Product::export();
         $expFieldsContrib = CRM_Contribute_DAO_ContributionProduct::export();
         $typeField = CRM_Contribute_DAO_ContributionType::export();
         $optionField = CRM_Core_OptionValue::getFields($mode = 'contribute');
         $fields = array_merge($impFields, $typeField);
         $fields = array_merge($fields, $expFieldProduct);
         $fields = array_merge($fields, $expFieldsContrib);
         $fields = array_merge($fields, $optionField);
         $fields = array_merge($fields, CRM_Core_BAO_CustomField::getFieldsForImport('Contribution'));
         self::$_exportableFields = $fields;
     }
     return self::$_exportableFields;
 }
开发者ID:ksecor,项目名称:civicrm,代码行数:24,代码来源:Contribution.php


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