• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/rest/smile.php
  • Класс: BitrixMainRestSmile
  • Вызов: Smile::getList
static function getList($arParams, $n, CRestServer $server)
{
	$options = [];
	if ($arParams['FULL_TYPINGS'] === 'Y')
	{
		$options['FULL_TYPINGS'] = 'Y';
	}

	$smiles = CSmileGallery::getSmilesWithSets(CSmileGallery::GALLERY_DEFAULT, $options);

	return self::objectEncode([
		'SETS' => $smiles['SMILE_SET'],
		'SMILES' => $smiles['SMILE'],
	], [
		'IMAGE_FIELD' => ['IMAGE']
	]);
}