• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/rest/helper.php
  • Класс: BitrixVoximplantRestHelper
  • Вызов: Helper::getRestAppName
static function getRestAppName($clientId)
{
	if (!Loader::includeModule('rest'))
	{
		return false;
	}

	$row = AppTable::getByClientId($clientId);

	if (!is_array($row))
	{
		return false;
	}

	if ($row['MENU_NAME'] != '')
	{
		$result = $row['MENU_NAME'];
	}
	else if ($row['MENU_NAME_DEFAULT'] != '')
	{
		$result = $row['MENU_NAME_DEFAULT'];
	}
	else if ($row['MENU_NAME_LICENSE'] != '')
	{
		$result = $row['MENU_NAME_LICENSE'];
	}
	else
	{
		$result = $row['APP_NAME'];
	}

	return $result;
}