Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
methodtime.php
1
<?php
8
namespace
Bitrix\Sender\Dispatch
;
9
10
use
Bitrix\Main\Localization\Loc
;
11
12
use
Bitrix\Main\Type\DateTime
;
13
use
Bitrix\Sender\Entity
;
14
15
Loc::loadMessages
(__FILE__);
16
17
class
MethodTime
implements
iMethod
18
{
20
protected
$dateTime
;
21
23
private
$letter;
24
30
public
function
__construct
(
Entity
\
Letter
$letter)
31
{
32
$this->letter = $letter;
33
}
34
40
public
function
setDateTime
(
DateTime
$dateTime
)
41
{
42
$this->dateTime =
$dateTime
;
43
}
44
50
public
function
getDateTime
()
51
{
52
return
$this->dateTime
;
53
}
54
60
public
function
apply
()
61
{
62
$this->letter->plan($this->dateTime);
63
}
64
70
public
function
revoke
()
71
{
72
if
(!$this->letter->getState()->isReady())
73
{
74
$this->letter->getState()->ready();
75
}
76
}
77
83
public
function
getCode
()
84
{
85
return
Method::TIME
;
86
}
87
}
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\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Sender\Dispatch\Method\TIME
const TIME
Definition
method.php:24
Bitrix\Sender\Dispatch\MethodTime
Definition
methodtime.php:18
Bitrix\Sender\Dispatch\MethodTime\revoke
revoke()
Definition
methodtime.php:70
Bitrix\Sender\Dispatch\MethodTime\setDateTime
setDateTime(DateTime $dateTime)
Definition
methodtime.php:40
Bitrix\Sender\Dispatch\MethodTime\apply
apply()
Definition
methodtime.php:60
Bitrix\Sender\Dispatch\MethodTime\getDateTime
getDateTime()
Definition
methodtime.php:50
Bitrix\Sender\Dispatch\MethodTime\__construct
__construct(Entity\Letter $letter)
Definition
methodtime.php:30
Bitrix\Sender\Dispatch\MethodTime\getCode
getCode()
Definition
methodtime.php:83
Bitrix\Sender\Dispatch\MethodTime\$dateTime
$dateTime
Definition
methodtime.php:20
Bitrix\Sender\Entity\Letter
Definition
letter.php:34
Bitrix\Sender\Dispatch\iMethod
Definition
imethod.php:17
Bitrix\Sender\Dispatch
Definition
duration.php:8
Bitrix\Sender\Entity
Definition
ad.php:8
modules
sender
lib
dispatch
methodtime.php
Создано системой
1.10.0