Documentation

getSources

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

Static method for getting description of all available sources for specified event. Create inside itself an object with passed settings and returns result for called method [link=10225100]\Bitrix\Landing\Source\Selector::getSourcesDescription[/link].

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 form with filter settings. Optional. Default - \Bitrix\Landing\Source\Selector::SOURCE_PATH.

Returned value

Returned value - array. Array keys - unique source indexes. Each array element describes a single source in the following format:

  • id - unique source index (string)
  • name - source name (string)
  • url - [ filter => Customizable filter for data retrieval ],
  • sort - fields for source data sorting
  • references - list of source fields for view setup inside landing block


© «Bitrix24», 2001-2024
Up