Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
status.php
1
<?php
2
namespace
Bitrix\Bizproc\Script\Queue
;
3
4
use
Bitrix\Main\Localization\Loc
;
5
6
class
Status
7
{
8
public
const
QUEUED
= 0;
9
public
const
EXECUTING
= 1;
10
public
const
FAULT
= 2;
11
public
const
TERMINATED
= 3;
12
public
const
COMPLETED
= 4;
13
14
public
static
function
getLabel
(
int
$status)
15
{
16
switch
($status)
17
{
18
case
static::QUEUED:
19
return
Loc::getMessage
(
'BIZPROC_SCRIPT_QUEUE_STATUS_QUEUED'
);
20
case
static::EXECUTING:
21
return
Loc::getMessage
(
'BIZPROC_SCRIPT_QUEUE_STATUS_EXECUTING'
);
22
case
static::FAULT:
23
return
Loc::getMessage
(
'BIZPROC_SCRIPT_QUEUE_STATUS_FAULT'
);
24
case
static::TERMINATED:
25
return
Loc::getMessage
(
'BIZPROC_SCRIPT_QUEUE_STATUS_TERMINATED'
);
26
case
static::COMPLETED:
27
return
Loc::getMessage
(
'BIZPROC_SCRIPT_QUEUE_STATUS_COMPLETED'
);
28
}
29
30
return
'unknown'
;
31
}
32
}
Bitrix\Bizproc\Script\Queue\Status
Definition
status.php:7
Bitrix\Bizproc\Script\Queue\Status\EXECUTING
const EXECUTING
Definition
status.php:9
Bitrix\Bizproc\Script\Queue\Status\COMPLETED
const COMPLETED
Definition
status.php:12
Bitrix\Bizproc\Script\Queue\Status\TERMINATED
const TERMINATED
Definition
status.php:11
Bitrix\Bizproc\Script\Queue\Status\getLabel
static getLabel(int $status)
Definition
status.php:14
Bitrix\Bizproc\Script\Queue\Status\QUEUED
const QUEUED
Definition
status.php:8
Bitrix\Bizproc\Script\Queue\Status\FAULT
const FAULT
Definition
status.php:10
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Bizproc\Script\Queue
Definition
status.php:2
modules
bizproc
lib
script
queue
status.php
Создано системой
1.10.0