1C-Bitrix
25.700.0
Toggle main menu visibility
Титульная страница
Пространства имен
Пространства имен
Члены пространств имен
Указатель
$
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Функции
_
a
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Переменные
$
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
v
w
Перечисления
a
b
c
d
e
f
g
l
m
n
o
p
r
s
t
u
v
w
Элементы перечислений
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Структуры данных
Структуры данных
Алфавитный указатель структур данных
Иерархия классов
Поля структур
Указатель
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Функции
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Переменные
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Перечисления
Элементы перечислений
Файлы
Файлы
Список членов всех файлов
Указатель
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
б
в
к
л
о
п
с
т
ю
Функции
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Переменные
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
б
в
к
л
о
п
с
т
ю
Блог
Хостинг
1C-Bitrix
Пространства имен
Структуры данных
Файлы
Файлы
bitrix
modules
abtest
advertising
b24connector
bitrixcloud
bizproc
bizprocdesigner
blog
calendar
catalog
clouds
cluster
conversion
currency
eshopapp
fileman
form
forum
highloadblock
iblock
idea
im
landing
ldap
learning
lists
location
data
lib
common
controller
entity
address
area
format
generic
location
source
config.php
configitem.php
factory.php
ormconverter.php
address.php
area.php
format.php
location.php
source.php
exception
geometry
infrastructure
model
repository
service
source
staticmap
meta
.settings.php
default_option.php
include.php
options.php
mail
main
messageservice
mobileapp
perfmon
photogallery
pull
report
rest
sale
scale
search
security
sender
seo
socialnetwork
socialservices
statistic
storeassist
subscribe
support
translate
ui
vote
webservice
wiki
workflow
Список членов всех файлов
Примеры
•
Указатель
Структуры данных
Пространства имен
Файлы
Функции
Переменные
Перечисления
Элементы перечислений
Страницы
Загрузка...
Поиск...
Не найдено
config.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Location\Entity\Source
;
4
10
final
class
Config
implements
\IteratorAggregate
11
{
13
private
$items = [];
14
19
public
function
addItem
(
ConfigItem
$item)
20
{
21
$this->items[] = $item;
22
23
return
$this;
24
}
19
public
function
addItem
(
ConfigItem
$item) {
…
}
25
30
public
function
getItem
(
string
$code
): ?
ConfigItem
31
{
32
foreach
($this->items as $item)
33
{
34
if
($item->getCode() !==
$code
)
35
{
36
continue
;
37
}
38
39
return
$item;
40
}
41
42
return
null
;
43
}
30
public
function
getItem
(
string
$code
): ?
ConfigItem
{
…
}
44
49
public
function
getValue
(
string
$code
)
50
{
51
$item = $this->
getItem
($code);
52
if
(!$item)
53
{
54
return
null
;
55
}
56
57
return
$item->getValue();
58
}
49
public
function
getValue
(
string
$code
) {
…
}
59
65
public
function
setValue
(
string
$code
, $value): bool
66
{
67
foreach
($this->items as $item)
68
{
69
if
($item->getCode() !==
$code
)
70
{
71
continue
;
72
}
73
74
$item->setValue($value);
75
76
return
true
;
77
}
78
79
return
false
;
80
}
65
public
function
setValue
(
string
$code
, $value): bool {
…
}
81
85
public
function
getIterator
(): \Traversable
86
{
87
usort(
88
$this->items,
89
function
(
ConfigItem
$item1,
ConfigItem
$item2)
90
{
91
if
($item1->
getSort
() == $item2->
getSort
())
92
{
93
return
0;
94
}
95
96
return
($item1->
getSort
() < $item2->
getSort
()) ? -1 : 1;
97
}
98
);
99
100
return
new \ArrayIterator($this->items);
101
}
85
public
function
getIterator
(): \Traversable {
…
}
102
}
10
final
class
Config
implements
\IteratorAggregate {
…
};
Bitrix\Location\Entity\Source\Config
Определения
config.php:11
Bitrix\Location\Entity\Source\Config\setValue
setValue(string $code, $value)
Определения
config.php:65
Bitrix\Location\Entity\Source\Config\getItem
getItem(string $code)
Определения
config.php:30
Bitrix\Location\Entity\Source\Config\addItem
addItem(ConfigItem $item)
Определения
config.php:19
Bitrix\Location\Entity\Source\Config\getIterator
getIterator()
Определения
config.php:85
Bitrix\Location\Entity\Source\Config\getValue
getValue(string $code)
Определения
config.php:49
Bitrix\Location\Entity\Source\ConfigItem
Определения
configitem.php:13
Bitrix\Location\Entity\Source\ConfigItem\getSort
getSort()
Определения
configitem.php:67
$code
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения
options.php:195
Bitrix\Location\Entity\Source
Определения
config.php:3
bitrix
modules
location
lib
entity
source
config.php
Создано системой
1.14.0