Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
methoddefered.php
1
<?php
8
namespace
Bitrix\Sender\Dispatch
;
9
10
use
Bitrix\Main\Localization\Loc
;
11
12
use
Bitrix\Sender\Entity
;
13
14
Loc::loadMessages
(__FILE__);
15
20
class
MethodDefered
implements
iMethod
21
{
23
private
$letter;
24
30
public
function
__construct
(
Entity
\
Letter
$letter)
31
{
32
$this->letter = $letter;
33
}
34
40
public
function
apply
()
41
{
42
$this->letter->set(
'REITERATE'
,
'N'
);
43
$this->letter->set(
'AUTO_SEND_TIME'
,
null
);
44
$this->letter->save();
45
if
(!$this->letter->getState()->isReady())
46
{
47
$this->letter->getState()->ready();
48
}
49
}
50
56
public
function
revoke
()
57
{
58
}
59
65
public
function
getCode
()
66
{
67
return
Method::DEFERED
;
68
}
69
}
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\Dispatch\MethodDefered
Definition
methoddefered.php:21
Bitrix\Sender\Dispatch\MethodDefered\revoke
revoke()
Definition
methoddefered.php:56
Bitrix\Sender\Dispatch\MethodDefered\apply
apply()
Definition
methoddefered.php:40
Bitrix\Sender\Dispatch\MethodDefered\__construct
__construct(Entity\Letter $letter)
Definition
methoddefered.php:30
Bitrix\Sender\Dispatch\MethodDefered\getCode
getCode()
Definition
methoddefered.php:65
Bitrix\Sender\Dispatch\Method\DEFERED
const DEFERED
Definition
method.php:23
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
methoddefered.php
Создано системой
1.10.0