Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
basefilter.php
1
<?php
2
namespace
Bitrix\UI\EntitySelector
;
3
4
abstract
class
BaseFilter
5
{
6
protected
$options
= [];
7
8
protected
function
__construct
()
9
{
10
// You have to validate $options in a derived class constructor
11
}
12
13
abstract
public
function
isAvailable
(): bool;
14
19
abstract
public
function
apply
(array $items,
Dialog
$dialog): void;
20
21
public
function
getOptions
(): array
22
{
23
return
$this->options
;
24
}
25
26
public
function
getOption
(
string
$option, $defaultValue =
null
)
27
{
28
return
array_key_exists($option, $this->options) ? $this->options[$option] : $defaultValue;
29
}
30
}
Bitrix\UI\EntitySelector\BaseFilter
Definition
basefilter.php:5
Bitrix\UI\EntitySelector\BaseFilter\$options
$options
Definition
basefilter.php:6
Bitrix\UI\EntitySelector\BaseFilter\__construct
__construct()
Definition
basefilter.php:8
Bitrix\UI\EntitySelector\BaseFilter\getOptions
getOptions()
Definition
basefilter.php:21
Bitrix\UI\EntitySelector\BaseFilter\apply
apply(array $items, Dialog $dialog)
Bitrix\UI\EntitySelector\BaseFilter\getOption
getOption(string $option, $defaultValue=null)
Definition
basefilter.php:26
Bitrix\UI\EntitySelector\BaseFilter\isAvailable
isAvailable()
Bitrix\UI\EntitySelector\Dialog
Definition
dialog.php:10
Bitrix\UI\EntitySelector
Definition
basefilter.php:2
modules
ui
lib
entityselector
basefilter.php
Создано системой
1.10.0