1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
baseprovider.php
См. документацию.
1<?
2namespace Bitrix\UI\EntitySelector;
3
4abstract 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}
if($_SERVER $defaultValue['REQUEST_METHOD']==="GET" &&!empty($RestoreDefaults) && $bizprocPerms==="W" &&check_bitrix_sessid())
Определения options.php:32
handleBeforeItemSave(Item $item)
Определения baseprovider.php:68
getChildren(Item $parentItem, Dialog $dialog)
Определения baseprovider.php:58
getOption(string $option, $defaultValue=null)
Определения baseprovider.php:48
fillDialog(Dialog $dialog)
Определения baseprovider.php:53
getPreselectedItems(array $ids)
Определения baseprovider.php:27
getSelectedItems(array $ids)
Определения baseprovider.php:38
doSearch(SearchQuery $searchQuery, Dialog $dialog)
Определения baseprovider.php:63
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$option
Определения options.php:1711