• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/lib/helper/mailbox.php
  • Класс: BitrixMailHelperMailbox
  • Вызов: Mailbox::__construct
protected function __construct($mailbox)
{
	$this->startTime = time();
	if (defined('START_EXEC_PROLOG_BEFORE_1'))
	{
		$startTime = 0;
		if (is_float(START_EXEC_PROLOG_BEFORE_1))
		{
			$startTime = START_EXEC_PROLOG_BEFORE_1;
		}
		elseif (preg_match('/ (d+)$/', START_EXEC_PROLOG_BEFORE_1, $matches))
		{
			$startTime = $matches[1];
		}

		if ($startTime > 0 && $this->startTime > $startTime)
		{
			$this->startTime = $startTime;
		}
	}

	$this->syncTimeout = static::getTimeout();

	$this->mailbox = $mailbox;

	$this->normalizeMailboxOptions();

	$this->setCheckpoint();

	$this->session = md5(uniqid(''));
	$this->errors = new MainErrorCollection();
	$this->warnings = new MainErrorCollection();
}