• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_documents.php
  • Класс: CVoxImplantDocuments
  • Вызов: CVoxImplantDocuments::SetVerifyResult
public function SetVerifyResult($params)
{
	if ($params['STATUS'] == 'VERIFIED')
	{
		$phoneVerified = Array();
		$orm = VIConfigTable::getList(Array(
			'filter'=>Array(
				'=PHONE_COUNTRY_CODE' => $params['REGION']
			)
		));
		while($config = $orm->fetch())
		{
			VIConfigTable::update($config['ID'], Array('PHONE_VERIFIED' => 'Y'));
			$phoneVerified[] = $config['PHONE_NAME'];
		}

		if (!empty($phoneVerified))
		{
			CVoxImplantHistory::WriteToLog($phoneVerified, 'VERIFY PHONES');
		}
	}

	return true;
}