當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。