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:
|
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-2025