Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
TemplateShards.php
1
<?php
2
3
namespace
Bitrix\Bizproc\Debugger\Session
;
4
5
use
Bitrix\Bizproc\Automation\Engine\Robot
;
6
7
class
TemplateShards
extends
Entity\EO_DebuggerSessionTemplateShards
8
{
9
const
TEMPLATE_TYPE_ACTIVITIES
= 1;
10
const
TEMPLATE_TYPE_ROBOTS
= 2;
11
12
public
function
getRobotData
(): ?array
13
{
14
if
((
int
)$this->fillTemplateType() === static::TEMPLATE_TYPE_ROBOTS)
15
{
16
return
$this->getShards();
17
}
18
19
return
null
;
20
}
21
22
public
function
getRobots
(): ?array
23
{
24
$robotData = $this->
getRobotData
();
25
$robots =
null
;
26
27
if
(is_array($robotData))
28
{
29
$robots = [];
30
foreach
($robotData as $data)
31
{
32
$robots[] =
new
Robot
($data);
33
}
34
}
35
36
return
$robots;
37
}
38
}
Bitrix\Bizproc\Automation\Engine\Robot
Definition
robot.php:8
Bitrix\Bizproc\Debugger\Session\TemplateShards
Definition
TemplateShards.php:8
Bitrix\Bizproc\Debugger\Session\TemplateShards\TEMPLATE_TYPE_ACTIVITIES
const TEMPLATE_TYPE_ACTIVITIES
Definition
TemplateShards.php:9
Bitrix\Bizproc\Debugger\Session\TemplateShards\getRobots
getRobots()
Definition
TemplateShards.php:22
Bitrix\Bizproc\Debugger\Session\TemplateShards\getRobotData
getRobotData()
Definition
TemplateShards.php:12
Bitrix\Bizproc\Debugger\Session\TemplateShards\TEMPLATE_TYPE_ROBOTS
const TEMPLATE_TYPE_ROBOTS
Definition
TemplateShards.php:10
Bitrix\Bizproc\Debugger\Session
Definition
DebuggerState.php:3
modules
bizproc
lib
Debugger
Session
TemplateShards.php
Создано системой
1.10.0