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

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

	$this->_timestamp = $timestamp;
}