• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/liveid.php
  • Класс: WLL_ConsentToken
  • Вызов: WLL_ConsentToken::setExpiry
function setExpiry($expiry)
{
	if (!$expiry) {
		//throw new Exception('Error: WLL_ConsentToken: Null expiry time.');
		$this->setError('Error: WLL_ConsentToken: Null expiry time.');
		return ;
	}

	if (!preg_match('/^d+$/', $expiry) || ($expiry <= 0)) {
		//throw new Exception('Error: WLL_ConsentToken: Invalid expiry time: ' . $expiry);
		$this->setError('Error: WLL_ConsentToken: Invalid expiry time: ' . $expiry);
		return ;
	}
	$this->_expiry = $expiry;
}