Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
baseprovider.php
1
<?
2
namespace
Bitrix\UI\EntitySelector
;
3
4
abstract
class
BaseProvider
5
{
6
protected
$options
= [];
7
8
protected
function
__construct
()
9
{
10
// You have to validate $options in a derived class constructor
11
}
12
13
public
abstract
function
isAvailable
(): bool;
14
20
public
abstract
function
getItems
(array $ids): array;
21
27
public
function
getPreselectedItems
(array $ids): array
28
{
29
return
$this->
getSelectedItems
($ids);
30
}
31
38
public
function
getSelectedItems
(array $ids): array
39
{
40
return
$this->
getItems
($ids);
41
}
42
43
public
function
getOptions
(): array
44
{
45
return
$this->options
;
46
}
47
48
public
function
getOption
(
string
$option, $defaultValue =
null
)
49
{
50
return
array_key_exists($option, $this->options) ? $this->options[$option] : $defaultValue;
51
}
52
53
public
function
fillDialog
(
Dialog
$dialog): void
54
{
55
56
}
57
58
public
function
getChildren
(
Item
$parentItem,
Dialog
$dialog): void
59
{
60
61
}
62
63
public
function
doSearch
(
SearchQuery
$searchQuery,
Dialog
$dialog): void
64
{
65
66
}
67
68
public
function
handleBeforeItemSave
(
Item
$item): void
69
{
70
71
}
72
}
Bitrix\UI\EntitySelector\BaseProvider
Definition
baseprovider.php:5
Bitrix\UI\EntitySelector\BaseProvider\$options
$options
Definition
baseprovider.php:6
Bitrix\UI\EntitySelector\BaseProvider\__construct
__construct()
Definition
baseprovider.php:8
Bitrix\UI\EntitySelector\BaseProvider\getOptions
getOptions()
Definition
baseprovider.php:43
Bitrix\UI\EntitySelector\BaseProvider\handleBeforeItemSave
handleBeforeItemSave(Item $item)
Definition
baseprovider.php:68
Bitrix\UI\EntitySelector\BaseProvider\getChildren
getChildren(Item $parentItem, Dialog $dialog)
Definition
baseprovider.php:58
Bitrix\UI\EntitySelector\BaseProvider\getOption
getOption(string $option, $defaultValue=null)
Definition
baseprovider.php:48
Bitrix\UI\EntitySelector\BaseProvider\fillDialog
fillDialog(Dialog $dialog)
Definition
baseprovider.php:53
Bitrix\UI\EntitySelector\BaseProvider\getPreselectedItems
getPreselectedItems(array $ids)
Definition
baseprovider.php:27
Bitrix\UI\EntitySelector\BaseProvider\getSelectedItems
getSelectedItems(array $ids)
Definition
baseprovider.php:38
Bitrix\UI\EntitySelector\BaseProvider\getItems
getItems(array $ids)
Bitrix\UI\EntitySelector\BaseProvider\doSearch
doSearch(SearchQuery $searchQuery, Dialog $dialog)
Definition
baseprovider.php:63
Bitrix\UI\EntitySelector\BaseProvider\isAvailable
isAvailable()
Bitrix\UI\EntitySelector\Dialog
Definition
dialog.php:10
Bitrix\UI\EntitySelector\Item
Definition
item.php:8
Bitrix\UI\EntitySelector\SearchQuery
Definition
searchquery.php:5
Bitrix\UI\EntitySelector
Definition
basefilter.php:2
modules
ui
lib
entityselector
baseprovider.php
Создано системой
1.10.0