Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
counter.php
1<?php
9
11
13
14Loc::loadMessages(__FILE__);
15
21{
23 private $letter;
24
30 public function __construct(Entity\Letter $letter)
31 {
32 $this->letter = $letter;
33 }
34
40 public function getAll()
41 {
42 return $this->letter->get('COUNT_SEND_ALL', 0);
43 }
44
50 public function getUnsent()
51 {
52 return $this->letter->get('COUNT_SEND_NONE', 0);
53 }
54
60 public function getSent()
61 {
62 return $this->letter->get('COUNT_SEND_ERROR', 0) + $this->letter->get('COUNT_SEND_SUCCESS', 0);
63 }
64
70 public function getSuccess()
71 {
72 return $this->letter->get('COUNT_SEND_SUCCESS', 0);
73 }
74
80 public function getErrors()
81 {
82 return $this->letter->get('COUNT_SEND_ERROR', 0);
83 }
84
90 public function getRead()
91 {
92 return $this->letter->get('COUNT_READ', 0);
93 }
94
100 public function getClicked()
101 {
102 return $this->letter->get('COUNT_CLICK', 0);
103 }
104
110 public function getUnsubscribed()
111 {
112 return $this->letter->get('COUNT_UNSUB', 0);
113 }
114}
static loadMessages($file)
Definition loc.php:64
__construct(Entity\Letter $letter)
Definition counter.php:30