Documentation

Class constructor

\Bitrix\Landing\Source\Selector::__construct(
   array $config = []
)

Constructor method.

Parameters

Parameters Description Available from version
config Array with settings containing the following keys:
  • SOURCE_EVENT_ID - ID for source collection event. Optional. Default value - \Bitrix\Landing\Source\Selector::EVENT_BUILD_SOURCE_LIST.
  • SOURCE_PATH - url (relative to site root) for opening the form with filter settings. Optional. Default - \Bitrix\Landing\Source\Selector::SOURCE_PATH.

Example

// all parameters are by default
$selector = new \Bitrix\Landing\Source\Selector();

// handling sources for specific event (specified directly)
$selector = new \Bitrix\Landing\Source\Selector([
   'SOURCE_EVENT_ID' => 'onBuildMySources'
]);

// custm page for form calling
$selector = new \Bitrix\Landing\Source\Selector([
   'SOURCE_PATH' => '/source/'
]);


© «Bitrix24», 2001-2024
Up