• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_user.php
  • Класс: CVoxImplantUser
  • Вызов: CVoxImplantUser::GetByPhone
static function GetByPhone($phone)
{
	$phone = CVoxImplantPhone::stripLetters($phone);

	if ($phone == '')
	{
		return false;
	}

	$row = VIPhoneTable::getRow([
		'select' => ['USER_ID'],
		'filter' => ['=PHONE_NUMBER' => $phone, '=USER.ACTIVE' => 'Y']
	]);

	return ($row ? (int)$row['USER_ID'] : false);
}