Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
semantics.php
1
<?php
8
namespace
Bitrix\Sender\Dispatch
;
9
10
use
Bitrix\Main\Localization\Loc
;
11
12
Loc::loadMessages
(__FILE__);
13
18
class
Semantics
19
{
20
const
FINISHED
= 1;
21
const
READY
= 2;
22
const
WORKING
= 3;
23
29
public
static
function
getFinishStates
()
30
{
31
return
self::getStates
(self::FINISHED);
32
}
33
39
public
static
function
getReadyStates
()
40
{
41
return
self::getStates
(self::READY);
42
}
43
49
public
static
function
getWorkStates
()
50
{
51
return
self::getStates
(self::WORKING);
52
}
53
60
public
static
function
getStates
($semanticId)
61
{
62
switch
($semanticId)
63
{
64
case
self::FINISHED
:
65
return
array(
66
State::SENT
,
67
State::STOPPED
68
);
69
70
case
self::WORKING
:
71
return
array(
72
State::SENDING
,
73
State::PAUSED
,
74
State::WAITING
,
75
State::PLANNED
,
76
State::HALTED
,
77
);
78
79
case
self::READY
:
80
default
:
81
return
array(
82
State::READY
,
83
State::NEWISH
,
84
State::INIT
85
);
86
}
87
}
88
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Sender\Dispatch\Semantics
Definition
semantics.php:19
Bitrix\Sender\Dispatch\Semantics\READY
const READY
Definition
semantics.php:21
Bitrix\Sender\Dispatch\Semantics\getStates
static getStates($semanticId)
Definition
semantics.php:60
Bitrix\Sender\Dispatch\Semantics\WORKING
const WORKING
Definition
semantics.php:22
Bitrix\Sender\Dispatch\Semantics\getWorkStates
static getWorkStates()
Definition
semantics.php:49
Bitrix\Sender\Dispatch\Semantics\getReadyStates
static getReadyStates()
Definition
semantics.php:39
Bitrix\Sender\Dispatch\Semantics\FINISHED
const FINISHED
Definition
semantics.php:20
Bitrix\Sender\Dispatch\Semantics\getFinishStates
static getFinishStates()
Definition
semantics.php:29
Bitrix\Sender\Dispatch\State\WAITING
const WAITING
Definition
state.php:36
Bitrix\Sender\Dispatch\State\READY
const READY
Definition
state.php:34
Bitrix\Sender\Dispatch\State\HALTED
const HALTED
Definition
state.php:41
Bitrix\Sender\Dispatch\State\PAUSED
const PAUSED
Definition
state.php:38
Bitrix\Sender\Dispatch\State\SENT
const SENT
Definition
state.php:39
Bitrix\Sender\Dispatch\State\INIT
const INIT
Definition
state.php:33
Bitrix\Sender\Dispatch\State\SENDING
const SENDING
Definition
state.php:35
Bitrix\Sender\Dispatch\State\STOPPED
const STOPPED
Definition
state.php:40
Bitrix\Sender\Dispatch\State\PLANNED
const PLANNED
Definition
state.php:37
Bitrix\Sender\Dispatch\State\NEWISH
const NEWISH
Definition
state.php:32
Bitrix\Sender\Dispatch
Definition
duration.php:8
modules
sender
lib
dispatch
semantics.php
Создано системой
1.10.0