Documentation

GetList

CSmile::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 data. All parameters are optional. Static method.

Parameters

Parameter Description
SELECT Selection fields. The following fields are available:
  • ID - smiley ID;
  • SET_ID - set ID;
  • TYPE - constant type;
  • NAME - smiley name;
  • SORT - sorting;
  • TYPING - smiley name in the editor
  • IMAGE - smiley name
  • IMAGE_HR - image quality.
  • IMAGE_WIDTH - image width in pixels
  • IMAGE_HEIGHT - image height in pixels
  • SET_NAME - set name
FILTER Selection filter. The following filters are available:
  • ID - smiley ID;
  • SET_ID - set ID;
Can have multiple value, presented by array of IDs.
ORDER Sorting fields. The following fields are available:
  • ID - smiley ID;
  • SET_ID - set ID;
  • SORT - sorting;
  • IMAGE_HR - image quality.
default ID sorting => DESC.
NAV_PARAMS Array parameters are passed for CDBResult::NavQuery.
RETURN_SQL Can be Y or N - the method returns generated request.
RETURN_RES Can be Y or N - the method returns a resource for processed request.
lang Language values, 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