Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
nodeoptions.php
1
<?
2
3
namespace
Bitrix\UI\EntitySelector
;
4
5
class
NodeOptions
implements
\JsonSerializable
6
{
7
protected
$itemOrder
= [];
8
protected
$open
=
false
;
9
protected
$dynamic
=
false
;
10
11
public
function
__construct
(array $options)
12
{
13
$this->
setItemOrder
($options[
'itemOrder'
] ?? []);
14
$this->
setOpen
($options[
'open'
] ??
false
);
15
$this->
setDynamic
($options[
'dynamic'
] ??
false
);
16
}
17
18
public
function
setOpen
(
bool
$open
=
true
)
19
{
20
$this->open =
$open
;
21
}
22
23
public
function
isOpen
()
24
{
25
return
$this->open
;
26
}
27
28
public
function
setDynamic
(
bool
$dynamic
=
true
)
29
{
30
$this->dynamic =
$dynamic
;
31
}
32
33
public
function
isDynamic
()
34
{
35
return
$this->dynamic
;
36
}
37
38
public
function
setItemOrder
(array $order)
39
{
40
$this->itemOrder = $order;
41
}
42
43
public
function
getItemOrder
()
44
{
45
return
$this->itemOrder
;
46
}
47
48
public
function
jsonSerialize
()
49
{
50
return
[
51
'itemOrder'
=> $this->
getItemOrder
(),
52
'open'
=> $this->
isOpen
(),
53
'dynamic'
=> $this->
isDynamic
()
54
];
55
}
56
}
Bitrix\UI\EntitySelector\NodeOptions
Definition
nodeoptions.php:6
Bitrix\UI\EntitySelector\NodeOptions\__construct
__construct(array $options)
Definition
nodeoptions.php:11
Bitrix\UI\EntitySelector\NodeOptions\getItemOrder
getItemOrder()
Definition
nodeoptions.php:43
Bitrix\UI\EntitySelector\NodeOptions\$open
$open
Definition
nodeoptions.php:8
Bitrix\UI\EntitySelector\NodeOptions\isDynamic
isDynamic()
Definition
nodeoptions.php:33
Bitrix\UI\EntitySelector\NodeOptions\$itemOrder
$itemOrder
Definition
nodeoptions.php:7
Bitrix\UI\EntitySelector\NodeOptions\setItemOrder
setItemOrder(array $order)
Definition
nodeoptions.php:38
Bitrix\UI\EntitySelector\NodeOptions\$dynamic
$dynamic
Definition
nodeoptions.php:9
Bitrix\UI\EntitySelector\NodeOptions\setDynamic
setDynamic(bool $dynamic=true)
Definition
nodeoptions.php:28
Bitrix\UI\EntitySelector\NodeOptions\setOpen
setOpen(bool $open=true)
Definition
nodeoptions.php:18
Bitrix\UI\EntitySelector\NodeOptions\isOpen
isOpen()
Definition
nodeoptions.php:23
Bitrix\UI\EntitySelector\NodeOptions\jsonSerialize
jsonSerialize()
Definition
nodeoptions.php:48
Bitrix\UI\EntitySelector
Definition
basefilter.php:2
modules
ui
lib
entityselector
nodeoptions.php
Создано системой
1.10.0