Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
parameterdictionary.php
1
<?php
2
3
namespace
Bitrix\Main\Type
;
4
5
use
Bitrix\Main\NotSupportedException
;
6
7
class
ParameterDictionary
extends
Dictionary
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
}
Bitrix\Main\NotSupportedException
Definition
exception.php:159
Bitrix\Main\Type\Dictionary
Definition
dictionary.php:6
Bitrix\Main\Type\Dictionary\$values
$values
Definition
dictionary.php:10
Bitrix\Main\Type\ParameterDictionary
Definition
parameterdictionary.php:8
Bitrix\Main\Type\ParameterDictionary\toArrayRaw
toArrayRaw()
Definition
parameterdictionary.php:49
Bitrix\Main\Type\ParameterDictionary\offsetUnset
offsetUnset($offset)
Definition
parameterdictionary.php:65
Bitrix\Main\Type\ParameterDictionary\setValues
setValues($values)
Definition
parameterdictionary.php:70
Bitrix\Main\Type\ParameterDictionary\setValuesNoDemand
setValuesNoDemand(array $values)
Definition
parameterdictionary.php:14
Bitrix\Main\Type\ParameterDictionary\getRaw
getRaw($name)
Definition
parameterdictionary.php:29
Bitrix\Main\Type\ParameterDictionary\offsetSet
offsetSet($offset, $value)
Definition
parameterdictionary.php:57
Bitrix\Main\Type\ParameterDictionary\$rawValues
$rawValues
Definition
parameterdictionary.php:12
Bitrix\Main\Type
Definition
collection.php:2
modules
main
lib
type
parameterdictionary.php
Создано системой
1.10.0