/**
  * Return count of alle subribed users
  *
  * @return unknown_type
  */
 function getUserCount()
 {
     $userCount = CjwNewsletterSubscription::fetchSubscriptionListByListIdCount($this->attribute('contentobject_id'));
     return $userCount;
 }
 /**
  *
  * @param integer $listContentobjectId
  * @return array
  */
 static function fetchSubscriptionListCount($listContentobjectId, $status)
 {
     $statusId = false;
     switch ($status) {
         case 'pending':
             $statusId = CjwNewsletterSubscription::STATUS_PENDING;
             break;
         case 'confirmed':
             $statusId = CjwNewsletterSubscription::STATUS_CONFIRMED;
             break;
         case 'approved':
             $statusId = CjwNewsletterSubscription::STATUS_APPROVED;
             break;
         case 'removed':
             $statusId = array(CjwNewsletterSubscription::STATUS_REMOVED_ADMIN, CjwNewsletterSubscription::STATUS_REMOVED_SELF);
             break;
         case 'bounced':
             $statusId = array(CjwNewsletterSubscription::STATUS_BOUNCED_SOFT, CjwNewsletterSubscription::STATUS_BOUNCED_HARD);
             break;
         case 'blacklisted':
             $statusId = CjwNewsletterSubscription::STATUS_BLACKLISTED;
             break;
         default:
             break;
     }
     $objectCount = CjwNewsletterSubscription::fetchSubscriptionListByListIdCount($listContentobjectId, $statusId);
     return array('result' => $objectCount);
 }
Пример #3
0
 /**
  * Return count of alle subribed users
  *
  * @return unknown_type
  */
 function getUserCount()
 {
     $userCount = CjwNewsletterSubscription::fetchSubscriptionListByListIdCount($this);
     return $userCount;
 }