• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/user.php
  • Класс: BitrixImUser
  • Вызов: User::getService
public function getService($type = self::PHONE_ANY)
{
	$fields = $this->getServices();

	$result = '';
	if ($type == self::SERVICE_ANY)
	{
		if (isset($fields[self::SERVICE_SKYPE]))
		{
			$result = $fields[self::SERVICE_SKYPE];
		}
		else if (isset($fields[self::SERVICE_ZOOM]))
		{
			$result = $fields[self::SERVICE_ZOOM];
		}
	}
	else if (isset($fields[$type]))
	{
		$result = $fields[$type];
	}

	return $result;
}