|
static | getFolders (int $siteId, ?int $parentId=null) |
|
static | getLandings (int $siteId, ?int $landingId=null, ?int $parentId=null) |
|
См. определение в файле selectorprovider.php строка 12
◆ __construct()
__construct |
( |
array | $options = [] | ) |
|
SelectorProvider constructor.
- Аргументы
-
array | $options | Options data. |
- Возвращает
- void
См. определение в файле selectorprovider.php строка 25
◆ doSearch()
Sets search result to the dialog.
- Аргументы
-
SearchQuery | $searchQuery | Search query instance. |
Dialog | $dialog | Main dialog instance. |
- Возвращает
- void
Переопределяет метод предка BaseProvider.
См. определение в файле selectorprovider.php строка 219
◆ getChildren()
Sets children items to Dialog.
- Аргументы
-
Item | $parentItem | Instance of clicked item. |
Dialog | $dialog | Main dialog instance. |
- Возвращает
- void
Переопределяет метод предка BaseProvider.
См. определение в файле selectorprovider.php строка 202
◆ getFolders()
static getFolders |
( |
int | $siteId, |
|
|
?int | $parentId = null ) |
|
static |
Returns folders by Parent ID.
- Аргументы
-
int | $siteId | Site id. |
int | null | $parentId | Parent folder id (null for root dir). |
- Возвращает
- Item[]
См. определение в файле selectorprovider.php строка 45
◆ getItems()
◆ getLandingIdFromDialog()
getLandingIdFromDialog |
( |
Dialog | $dialog | ) |
|
|
protected |
Returns landing id from dialog options.
- Аргументы
-
Dialog | $dialog | Main dialog instance. |
- Возвращает
- int|null
См. определение в файле selectorprovider.php строка 182
◆ getLandings()
static getLandings |
( |
int | $siteId, |
|
|
?int | $landingId = null, |
|
|
?int | $parentId = null ) |
|
static |
Returns landings by Parent ID.
- Аргументы
-
int | $siteId | Site id. |
int | null | $landingId | Landing id (for mark item as selected). |
int | null | $parentId | Parent folder id (null for root dir). |
- Возвращает
- Item[]
См. определение в файле selectorprovider.php строка 82
◆ getSelectedItems()
getSelectedItems |
( |
array | $ids | ) |
|
◆ getSiteIdFromDialog()
getSiteIdFromDialog |
( |
Dialog | $dialog | ) |
|
|
protected |
Returns site id from dialog options.
- Аргументы
-
Dialog | $dialog | Main dialog instance. |
- Возвращает
- int|null
См. определение в файле selectorprovider.php строка 162
◆ isAvailable()
This provider is available for everyone (of course not because we have access checking on API level).
- Возвращает
- bool
Переопределяет метод предка BaseProvider.
См. определение в файле selectorprovider.php строка 34
◆ $searchPhrase