Documentation

getDataLoader

\Bitrix\Landing\Source\Selector::getDataLoader(
   $index,
   array $parameters,
   array $options = []]
)

Method returns data retrieval object from a source.

Parameters

Method TypeDescription Available from version
$index stringSource unique index (required)
$parameters arraySettings for landing block (required). Can contain the following keys:
  • select - list of selected source fields
  • filter - block filter as saved in block settings (see class \Bitrix\Landing\Source\Filter and derivatives)
  • order - result list sorting
  • limit - maximum number of returned records.
  • internal_filter - additional filter, returned in the source in the field SOURCE_FILTER.
$options arrayadditional settings (optional). Can contain the following keys:
  • detail_page_url - details page link template

Returned value

Returns:

  • null - source not found
  • descendant class object [link=10222488]\Bitrix\Landing\Source\DataLoader[/link] to be used for retrieving records from a source.
© «Bitrix24», 2001-2024
Up