Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
statisticenum.php
1
<?php
2
3
4
namespace
Bitrix\Sale\Exchange\Integration\Controller
;
5
6
7
use
Bitrix\Main\Localization\Loc
;
8
use
Bitrix\Main\Engine\Controller
;
9
use
Bitrix\Sale\Exchange\Integration\Entity\StatusType
;
10
use
Bitrix\Sale\Exchange\Integration\EntityType
;
11
12
class
StatisticEnum
extends
Controller
13
{
14
public
function
getStatusTypesAction
()
15
{
16
$r[] = [
'code'
=>
StatusType::SUCCESS_NAME
,
'name'
=>
StatusType::getDescription
(
StatusType::SUCCESS
)];
17
$r[] = [
'code'
=>
StatusType::PROCESS_NAME
,
'name'
=>
StatusType::getDescription
(
StatusType::PROCESS
)];
18
$r[] = [
'code'
=>
StatusType::FAULTY_NAME
,
'name'
=>
StatusType::getDescription
(
StatusType::FAULTY
)];
19
20
return
[
'enum'
=>$r];
21
}
22
23
public
function
getEntityTypesAction
()
24
{
25
$r[] = [
'id'
=>
EntityType::ORDER
,
'name'
=>
EntityType::getDescription
(
EntityType::ORDER
)];
26
27
return
[
'enum'
=>$r];
28
}
29
}
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Sale\Exchange\Integration\CRM\EntityType
Definition
entitytype.php:5
Bitrix\Sale\Exchange\Integration\Controller\StatisticEnum
Definition
statisticenum.php:13
Bitrix\Sale\Exchange\Integration\Controller\StatisticEnum\getEntityTypesAction
getEntityTypesAction()
Definition
statisticenum.php:23
Bitrix\Sale\Exchange\Integration\Controller\StatisticEnum\getStatusTypesAction
getStatusTypesAction()
Definition
statisticenum.php:14
Bitrix\Sale\Exchange\Integration\Entity\StatusType
Definition
statustype.php:10
Bitrix\Sale\Exchange\Integration\Entity\StatusType\SUCCESS_NAME
const SUCCESS_NAME
Definition
statustype.php:16
Bitrix\Sale\Exchange\Integration\Entity\StatusType\PROCESS_NAME
const PROCESS_NAME
Definition
statustype.php:17
Bitrix\Sale\Exchange\Integration\Entity\StatusType\SUCCESS
const SUCCESS
Definition
statustype.php:12
Bitrix\Sale\Exchange\Integration\Entity\StatusType\FAULTY
const FAULTY
Definition
statustype.php:14
Bitrix\Sale\Exchange\Integration\Entity\StatusType\getDescription
static getDescription($typeId)
Definition
statustype.php:83
Bitrix\Sale\Exchange\Integration\Entity\StatusType\PROCESS
const PROCESS
Definition
statustype.php:13
Bitrix\Sale\Exchange\Integration\Entity\StatusType\FAULTY_NAME
const FAULTY_NAME
Definition
statustype.php:18
Bitrix\Sale\Exchange\Integration\EntityType\ORDER
const ORDER
Definition
entitytype.php:12
Bitrix\Sale\Exchange\Integration\EntityType\getDescription
static getDescription($typeId)
Definition
entitytype.php:17
Bitrix\Sale\Exchange\Integration\Controller
Definition
scenarios.php:4
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
sale
lib
exchange
integration
controller
statisticenum.php
Создано системой
1.10.0