• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/rest/externalchanneltype.php
  • Класс: Bitrix\Crm\Rest\CCrmExternalChannelType
  • Вызов: CCrmExternalChannelType::getDescriptions
static function getDescriptions($types)
    {
        $result = array();
        if(is_array($types))
        {
            foreach($types as $typeID)
            {
                $typeID = intval($typeID);
                $descr = self::getDescription($typeID);
                if($descr !== '')
                {
                    $result[$typeID] = $descr;
                }
            }
        }
        return $result;
    }