Bitrix API

ElementProvider extends BaseProvider

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

Constants

Methods

__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)

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>
Tags
see
getPreselectedItems
Return values
array<string|int, Item>

        
On this page

Search results