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


PHP CRM_Mailing_Event_BAO_Queue::getTotalCount方法代码示例

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


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

示例1: getTotalCount

 /**
  * Returns total number of rows for the query.
  *
  * @param
  *
  * @return int Total number of rows
  * @access public
  */
 function getTotalCount($action)
 {
     switch ($this->_event_type) {
         case 'queue':
             $event = new CRM_Mailing_Event_BAO_Queue();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id);
             break;
         case 'delivered':
             $event = new CRM_Mailing_Event_BAO_Delivered();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'opened':
             $event = new CRM_Mailing_Event_BAO_Opened();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'bounce':
             $event = new CRM_Mailing_Event_BAO_Bounce();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'forward':
             $event = new CRM_Mailing_Event_BAO_Forward();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'reply':
             $event = new CRM_Mailing_Event_BAO_Reply();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'unsubscribe':
             $event = new CRM_Mailing_Event_BAO_Unsubscribe();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'optout':
             $event = new CRM_Mailing_Event_BAO_Unsubscribe();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct, FALSE);
             break;
         case 'click':
             $event = new CRM_Mailing_Event_BAO_TrackableURLOpen();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct, $this->_url_id);
             break;
         default:
             return 0;
     }
 }
开发者ID:hguru,项目名称:224Civi,代码行数:51,代码来源:Event.php

示例2: getTotalCount

 /**
  * Returns total number of rows for the query.
  *
  * @param 
  * @return int Total number of rows 
  * @access public
  */
 function getTotalCount($action)
 {
     switch ($this->_event_type) {
         case 'queue':
             require_once 'CRM/Mailing/Event/BAO/Queue.php';
             $event = new CRM_Mailing_Event_BAO_Queue();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id);
             break;
         case 'delivered':
             require_once 'CRM/Mailing/Event/BAO/Delivered.php';
             $event = new CRM_Mailing_Event_BAO_Delivered();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'opened':
             require_once 'CRM/Mailing/Event/BAO/Opened.php';
             $event = new CRM_Mailing_Event_BAO_Opened();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'bounce':
             require_once 'CRM/Mailing/Event/BAO/Bounce.php';
             $event = new CRM_Mailing_Event_BAO_Bounce();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'forward':
             require_once 'CRM/Mailing/Event/BAO/Forward.php';
             $event = new CRM_Mailing_Event_BAO_Forward();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'reply':
             require_once 'CRM/Mailing/Event/BAO/Reply.php';
             $event = new CRM_Mailing_Event_BAO_Reply();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'unsubscribe':
             require_once 'CRM/Mailing/Event/BAO/Unsubscribe.php';
             $event = new CRM_Mailing_Event_BAO_Unsubscribe();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct);
             break;
         case 'click':
             require_once 'CRM/Mailing/Event/BAO/TrackableURLOpen.php';
             $event = new CRM_Mailing_Event_BAO_TrackableURLOpen();
             return $event->getTotalCount($this->_mailing_id, $this->_job_id, $this->_is_distinct, $this->_url_id);
             break;
         default:
             return 0;
     }
 }
开发者ID:hampelm,项目名称:Ginsberg-CiviDemo,代码行数:54,代码来源:Event.php


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