1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
counter.php
См. документацию.
1
<?php
8
namespace
Bitrix\Sender\Posting;
9
10
use Bitrix\Main\Localization\Loc;
11
12
use Bitrix\Sender\Entity;
13
14
Loc::loadMessages(__FILE__);
15
20
class
Counter
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
}
Bitrix\Sender\Entity\Letter
Определения
letter.php:36
Bitrix\Sender\Posting\Counter
Определения
counter.php:21
Bitrix\Sender\Posting\Counter\getRead
getRead()
Определения
counter.php:90
Bitrix\Sender\Posting\Counter\getSuccess
getSuccess()
Определения
counter.php:70
Bitrix\Sender\Posting\Counter\getErrors
getErrors()
Определения
counter.php:80
Bitrix\Sender\Posting\Counter\getSent
getSent()
Определения
counter.php:60
Bitrix\Sender\Posting\Counter\getClicked
getClicked()
Определения
counter.php:100
Bitrix\Sender\Posting\Counter\__construct
__construct(Entity\Letter $letter)
Определения
counter.php:30
Bitrix\Sender\Posting\Counter\getUnsubscribed
getUnsubscribed()
Определения
counter.php:110
Bitrix\Sender\Posting\Counter\getAll
getAll()
Определения
counter.php:40
Bitrix\Sender\Posting\Counter\getUnsent
getUnsent()
Определения
counter.php:50
Bitrix\Main\Entity
Определения
ufield.php:9
bitrix
modules
sender
lib
posting
counter.php
Создано системой
1.14.0