1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
methodtime.php
См. документацию.
1<?php
8namespace Bitrix\Sender\Dispatch;
9
10use Bitrix\Main\Localization\Loc;
11
12use Bitrix\Main\Type\DateTime;
13use Bitrix\Sender\Entity;
14
15Loc::loadMessages(__FILE__);
16
17class 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
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}
const TIME
Определения method.php:24
setDateTime(DateTime $dateTime)
Определения methodtime.php:40
__construct(Entity\Letter $letter)
Определения methodtime.php:30
Определения ufield.php:9