Table of Contents
Constants
-
ENTITY_ID
= 'highloadblock-element'
-
QUERY_BEGIN
= 'B'
-
QUERY_SEARCH
= 'S'
-
QUERY_SUBSTRING
= 'L'
Methods
-
__construct()
: mixed
-
doSearch()
: void
-
fillDialog()
: void
-
getChildren()
: void
-
getItems()
: array<string|int, Item>
-
getOption()
: mixed
-
getOptions()
: array<string|int, mixed>
-
getPreselectedItems()
: array<string|int, Item>
-
getSelectedItems()
: array<string|int, Item>
-
handleBeforeItemSave()
: void
-
isAvailable()
: bool
ENTITY_ID
public
mixed
ENTITY_ID
= 'highloadblock-element'
QUERY_BEGIN
public
mixed
QUERY_BEGIN
= 'B'
QUERY_SEARCH
public
mixed
QUERY_SEARCH
= 'S'
QUERY_SUBSTRING
public
mixed
QUERY_SUBSTRING
= 'L'
__construct()
public
__construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
-
$options
: array<string|int, mixed>
= []
-
- highloadblockId - Highloadblock id (int, required)
- valueField - Value field name (string, optional, default value - UF_XML_ID)
- titleField - Title field name (string, optional, default value - UF_NAME)
- orderField - Order field name (string, optional, default value - UF_SORT)
- direction - Order direaction (string, optional, ASC/DESC, default value - ASC)
- queryMethod - Filter type for query (string, optional, default value - B)
doSearch()
public
doSearch(SearchQuery $searchQuery, Dialog $dialog) : void
Parameters
-
$searchQuery
: SearchQuery
-
-
$dialog
: Dialog
-
fillDialog()
public
fillDialog(Dialog $dialog) : void
Parameters
-
$dialog
: Dialog
-
getChildren()
public
getChildren(Item $parentItem, Dialog $dialog) : void
Parameters
-
$parentItem
: Item
-
-
$dialog
: Dialog
-
getItems()
public
getItems(array<string|int, mixed> $ids) : array<string|int, Item>
Parameters
-
$ids
: array<string|int, mixed>
-
Return values
array<string|int, Item>
getOption()
public
getOption(string $option[, mixed $defaultValue = null ]) : mixed
Parameters
-
$option
: string
-
-
$defaultValue
: mixed
= null
-
getOptions()
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>
getPreselectedItems()
public
getPreselectedItems(array<string|int, mixed> $ids) : array<string|int, Item>
Parameters
-
$ids
: array<string|int, mixed>
-
Return values
array<string|int, Item>
getSelectedItems()
public
getSelectedItems(array<string|int, mixed> $ids) : array<string|int, Item>
Parameters
-
$ids
: array<string|int, mixed>
-
-
see
-
getPreselectedItems
Return values
array<string|int, Item>
handleBeforeItemSave()
public
handleBeforeItemSave(Item $item) : void
Parameters
-
$item
: Item
-
isAvailable()
public
isAvailable() : bool