Documentation

GetList

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

The method gets data on smiley set. All parameters are optional. Static method.

Parameters

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

Returned value

The method returns array If RETURN_SQL or RETURN_RES are not specified.



© «Bitrix24», 2001-2024
Up