CBlogSmile :: GetSmilesList: Bitrix method

      
<?php 
//  CBlogSmile :: GetSmilesList()
//  /dist/bitrix/modules/blog/general/smile.php:47

    
public static function GetSmilesList()
    {
        
$type CSmile::TYPE_SMILE;
        
$lang LANGUAGE_ID;

        if (
COption::GetOptionInt("blog""smile_native_gallery_id"0) <= 0)
            return 
self::getSmiles($type$lang);

        
$key "old_".$type."_".$lang;
        if (!
array_key_exists($keyself::$smiles))
        {
            
$smiles CSmile::getByGalleryId($typeCOption::GetOptionInt("blog""smile_native_gallery_id"0), $lang);
            
$result = array();
            foreach (
$smiles as $smile)
            {
                if (
$smile['HIDDEN'] == 'Y')
                    continue;

                
$result[] = array(
                    
'ID' => $smile['ID'],
                    
'SMILE_TYPE' => $type,
                    
'TYPING' => $smile['TYPING'],
                    
'IMAGE' => $smile["IMAGE"],
                    
'DESCRIPTION' => '',
                    
'CLICKABLE' => 'Y',
                    
'SORT' => $smile['SORT'],
                    
'IMAGE_WIDTH' => $smile['IMAGE_WIDTH'],
                    
'IMAGE_HEIGHT' => $smile['IMAGE_HEIGHT'],
                    
'SET_ID' => $smile['SET_ID'],
                    
'NAME' => $smile['NAME'],
                    
'WIDTH' => $smile['IMAGE_WIDTH'],
                    
'HEIGHT' => $smile['IMAGE_HEIGHT'],
                );
            }
            
self::$smiles[$key] = $result;
        }
        return 
self::$smiles[$key];
    }