Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Sender\Entity\Letter
Definition
letter.php:34
Bitrix\Sender\Posting\Counter
Definition
counter.php:21
Bitrix\Sender\Posting\Counter\getRead
getRead()
Definition
counter.php:90
Bitrix\Sender\Posting\Counter\getSuccess
getSuccess()
Definition
counter.php:70
Bitrix\Sender\Posting\Counter\getErrors
getErrors()
Definition
counter.php:80
Bitrix\Sender\Posting\Counter\getSent
getSent()
Definition
counter.php:60
Bitrix\Sender\Posting\Counter\getClicked
getClicked()
Definition
counter.php:100
Bitrix\Sender\Posting\Counter\__construct
__construct(Entity\Letter $letter)
Definition
counter.php:30
Bitrix\Sender\Posting\Counter\getUnsubscribed
getUnsubscribed()
Definition
counter.php:110
Bitrix\Sender\Posting\Counter\getAll
getAll()
Definition
counter.php:40
Bitrix\Sender\Posting\Counter\getUnsent
getUnsent()
Definition
counter.php:50
Bitrix\Sender\Entity
Definition
ad.php:8
Bitrix\Sender\Posting
Definition
builder.php:8
modules
sender
lib
posting
counter.php
Создано системой
1.10.0