1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
result.php
См. документацию.
1<?
2
3namespace Bitrix\Seo\Marketing;
4
5use Bitrix\Main;
6use Bitrix\Main\Type\DateTime;
7
8class Result extends Main\Result
9{
11 protected $id;
12
14 protected $dateCreate;
15
18
25 public function setData(array $data)
26 {
27 $this->data = array();
28 $this->currentIterationNumber = 0;
29
30 foreach ($data as $item)
31 {
32 if (!isset($item['NAME']) || !$item['NAME'])
33 {
34 continue;
35 }
36
37 if (!isset($item['VALUES']) || !is_array($item['VALUES']) || !$item['VALUES'])
38 {
39 continue;
40 }
41
42 $this->addFieldValues($item['NAME'], $item['VALUES']);
43 }
44 }
45
52 public function addFieldValues($name, array $values)
53 {
54 $this->data[] = array(
55 'NAME' => $name,
56 'VALUES' => $values
57 );
58 }
59
65 public function getId()
66 {
67 return $this->id;
68 }
69
75 public function setId($id)
76 {
77 $this->id = $id;
78 }
79
85 public function getDateCreate()
86 {
87 return $this->dateCreate;
88 }
89
96 {
97 $this->dateCreate = $dateCreate;
98 }
99
105 public function fetch()
106 {
107 if (!isset($this->data[$this->currentIterationNumber]))
108 {
109 return null;
110 }
111
112 $row = $this->data[$this->currentIterationNumber];
113 $this->currentIterationNumber++;
114
115 return $row;
116 }
117}
$data
Определения result.php:22
$currentIterationNumber
Определения result.php:17
getDateCreate()
Определения result.php:85
addFieldValues($name, array $values)
Определения result.php:52
setId($id)
Определения result.php:75
setData(array $data)
Определения result.php:25
setDateCreate(DateTime $dateCreate)
Определения result.php:95
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$name
Определения menu_edit.php:35