Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
TemplateShards.php
1<?php
2
4
6
7class TemplateShards extends Entity\EO_DebuggerSessionTemplateShards
8{
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}