Documentation

getList

\Bitrix\Main\DB\Result public static
\Bitrix\Main\Entity\DataManager::getList(
 array $parameters = array()
);

This static method executes query and returns retrieved data according query parameters. This method - is an alias for function methods \Bitrix\Main\Entity\Query.

Parameters

ParameterDescriptionVersion
$parametersArray of query parameters. Possible keys:
  • select - array of filters in the query's SELECT with possible aliases as follows: "alias"=>"field".
  • filter - array of filters in the query's WHERE with alias as follows: "(condition)field"=>"value".
  • group - array of fields in the query's GROUP BY.
  • order - array of fields in the query's ORDER BY as follows: "field"=>"asc|desc".
  • limit - integer, specifying maximum number of columns in retrieved result (similar to LIMIT n in MySql)
  • offset - integer, specifying the number of first column in the result (similar to LIMIT n, 100 in MySql)
  • runtime - array of entity fields, created dynamically.

Exceptions

Examples

Examples can be found in the Bitrix Framework learning course



© «Bitrix24», 2001-2024
Up