Documentation

GetList

CSmileGallery::getList(
   Array(
      'SELECT' => Array('ID'),
      'FILTER' => Array('SET_ID' => $id),
      'ORDER' => Array('ID' => 'DESC'),
      'NAV_PARAMS' => Array(),
      'RETURN_SQL' => 'N',
      'RETURN_RES' => 'N', 
   ),
   $lang = LANGUAGE_ID
);

The method gets smiley gallery data. All parameters are optional. Static method.

Parameters

Parameter Description
SELECT The following fields are available for selection:
  • ID - smiley ID;
  • STRING_ID - gallery string ID
  • SORT - sorting;
  • NAME - gallery name;
  • SMILE_COUNT - number of smileys.
FILTER The following filters are available:
  • ID - smiley ID;
  • STRING_ID - gallery string ID
Parameters can be multiple, presented by the array of IDs.
ORDER The following fields for sorting are available:
  • ID - smiley ID;
  • SORT - sorting;
default ID sorting => DESC.
NAV_PARAMS Array parameters are passed for CDBResult::NavQuery.
RETURN_SQL Can be Y or N - the method returns generated query as the result.
RETURN_RES Can be Y or N - the method returns resource as the result of a processed query.
lang Language value, stored in the LANGUAGE_ID constant.

Returned value

If RETURN_SQL or RETURN_RES are not specified, the method returns an array.



© «Bitrix24», 2001-2024
Up