Documentation

setConfig

\Bitrix\Landing\Source\DataLoader::setConfig(
   array $config
)

Method sets a source settings.

Parameters

Parameters Type Description Available from version
$config ArraySource settings. Standard keys:
  • select - Array with fields for source elements to be displayed in block. Array format:
    [
      [
         'id' => 'SOURCE_ELEMENT_FIELD_NAME',
         additional fields (for links, for example)
      ],
      ...
    ]
  • filter - Block filter. Array format:
                           
    [
       [
          'name' - filter parameter name
          'key' - parameter name (field or source element property)
          'value' - values for filtering (array)
             [
              // format is defined by the field type in main.ui.filter
             ]
        ],
    ...
    ]
  • order - Fields and sort direction (applicable to list only). Array format:
    [
        'by' => 'SORT_FIELD_NAME',
        'order' => 'direction' (asc/desc)
    ]
  • limit - Number of printed elements (applicable to list only). Value - integer
  • internal_filter - Additional filter, applied to the filter ('filter' key). Includes access permission check, element activity, and etc. Format and contents correspond to the field SOURCE_FILTER from source description (if specified).

Returned value:

None.



© «Bitrix24», 2001-2024
Up