當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CRM_Mailing_DAO_Mailing::fields方法代碼示例

本文整理匯總了PHP中CRM_Mailing_DAO_Mailing::fields方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRM_Mailing_DAO_Mailing::fields方法的具體用法?PHP CRM_Mailing_DAO_Mailing::fields怎麽用?PHP CRM_Mailing_DAO_Mailing::fields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CRM_Mailing_DAO_Mailing的用法示例。


在下文中一共展示了CRM_Mailing_DAO_Mailing::fields方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _civicrm_api3_mailing_a_b_submit_spec

/**
 * Adjust Metadata for submit action.
 *
 * The metadata is used for setting defaults, documentation & validation.
 *
 * @param array $spec
 *   Array of parameters determined by getfields.
 */
function _civicrm_api3_mailing_a_b_submit_spec(&$spec)
{
    $mailingFields = CRM_Mailing_DAO_Mailing::fields();
    $mailingAbFields = CRM_Mailing_DAO_MailingAB::fields();
    $spec['id'] = $mailingAbFields['id'];
    $spec['status'] = $mailingAbFields['status'];
    $spec['scheduled_date'] = $mailingFields['scheduled_date'];
    $spec['approval_date'] = $mailingFields['approval_date'];
    $spec['approval_status_id'] = $mailingFields['approval_status_id'];
    $spec['approval_note'] = $mailingFields['approval_note'];
    // Note: we'll pass through approval_* fields to the underlying mailing, but they may be ignored
    // if the user doesn't have suitable permission. If separate approvals are required, they must be provided
    // outside the A/B Test UI.
}
開發者ID:nielosz,項目名稱:civicrm-core,代碼行數:22,代碼來源:MailingAB.php

示例2: _civicrm_api3_mailing_submit_spec

/**
 * Adjust metadata for mailing submit api function.
 *
 * @param array $spec
 */
function _civicrm_api3_mailing_submit_spec(&$spec)
{
    $mailingFields = CRM_Mailing_DAO_Mailing::fields();
    $spec['id'] = $mailingFields['id'];
    $spec['scheduled_date'] = $mailingFields['scheduled_date'];
    $spec['approval_date'] = $mailingFields['approval_date'];
    $spec['approval_status_id'] = $mailingFields['approval_status_id'];
    $spec['approval_note'] = $mailingFields['approval_note'];
    // _skip_evil_bao_auto_recipients_: bool
}
開發者ID:rameshrr99,項目名稱:civicrm-core,代碼行數:15,代碼來源:Mailing.php

示例3: getWorkflowFieldPerms

 /**
  * Get a list of permissions required for CRUD'ing each field
  * (when workflow is enabled).
  *
  * @return array
  *   Array (string $fieldName => string $permName)
  */
 public static function getWorkflowFieldPerms()
 {
     $fieldNames = array_keys(CRM_Mailing_DAO_Mailing::fields());
     $fieldPerms = array();
     foreach ($fieldNames as $fieldName) {
         if ($fieldName == 'id') {
             $fieldPerms[$fieldName] = array(array('access CiviMail', 'schedule mailings', 'approve mailings', 'create mailings'));
         } elseif (in_array($fieldName, array('scheduled_date', 'scheduled_id'))) {
             $fieldPerms[$fieldName] = array(array('access CiviMail', 'schedule mailings'));
         } elseif (in_array($fieldName, array('approval_date', 'approver_id', 'approval_status_id', 'approval_note'))) {
             $fieldPerms[$fieldName] = array(array('access CiviMail', 'approve mailings'));
         } else {
             $fieldPerms[$fieldName] = array(array('access CiviMail', 'create mailings'));
         }
     }
     return $fieldPerms;
 }
開發者ID:scardinius,項目名稱:civicrm-core-api-mailing,代碼行數:24,代碼來源:Mailing.php

示例4: array

 /**
  * returns the list of fields that can be exported
  *
  * @access public
  * return array
  */
 function &export($prefix = false)
 {
     if (!$GLOBALS['_CRM_MAILING_DAO_MAILING']['_export']) {
         $GLOBALS['_CRM_MAILING_DAO_MAILING']['_export'] = array();
         $fields =& CRM_Mailing_DAO_Mailing::fields();
         foreach ($fields as $name => $field) {
             if (CRM_Utils_Array::value('export', $field)) {
                 if ($prefix) {
                     $GLOBALS['_CRM_MAILING_DAO_MAILING']['_export']['mailing'] =& $fields[$name];
                 } else {
                     $GLOBALS['_CRM_MAILING_DAO_MAILING']['_export'][$name] =& $fields[$name];
                 }
             }
         }
     }
     return $GLOBALS['_CRM_MAILING_DAO_MAILING']['_export'];
 }
開發者ID:bhirsch,項目名稱:voipdrupal-4.7-1.0,代碼行數:23,代碼來源:Mailing.php


注:本文中的CRM_Mailing_DAO_Mailing::fields方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。