Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
parameterdictionary.php
1<?php
2
3namespace Bitrix\Main\Type;
4
6
8{
12 protected $rawValues = null;
13
14 protected function setValuesNoDemand(array $values)
15 {
16 if ($this->rawValues === null)
17 {
18 $this->rawValues = $this->values;
19 }
20 $this->values = $values;
21 }
22
29 public function getRaw($name)
30 {
31 if ($this->rawValues === null)
32 {
33 if (isset($this->values[$name]) || array_key_exists($name, $this->values))
34 {
35 return $this->values[$name];
36 }
37 }
38 else
39 {
40 if (isset($this->rawValues[$name]) || array_key_exists($name, $this->rawValues))
41 {
42 return $this->rawValues[$name];
43 }
44 }
45
46 return null;
47 }
48
49 public function toArrayRaw()
50 {
51 return $this->rawValues;
52 }
53
57 public function offsetSet($offset, $value)
58 {
59 throw new NotSupportedException("Can not set readonly values.");
60 }
61
65 public function offsetUnset($offset): void
66 {
67 throw new NotSupportedException("Can not unset readonly values.");
68 }
69
70 public function setValues($values)
71 {
72 throw new NotSupportedException("Can not set readonly values.");
73 }
74}