Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
methoddefered.php
1<?php
9
11
13
14Loc::loadMessages(__FILE__);
15
20class 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}
static loadMessages($file)
Definition loc.php:64