• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/event_message.php
  • Класс: CSecurityEventMessageFormatter
  • Вызов: CSecurityEventMessageFormatter::__construct
public function __construct($messageFormat = "", $userInfoFormat = "")
{
	if ($messageFormat)
		$this->messageFormat = $messageFormat;
	else
		$this->messageFormat = self::getDefaultMessageFormat();

	if ($userInfoFormat)
		$this->userInfoFormat = $userInfoFormat;
	else
		$this->userInfoFormat = self::getDefaultUserInfoFormat();

	$this->isUserInfoNeeded = mb_strpos($messageFormat, self::USER_INFO) !== false;
	$this->isB64MessageNeeded = mb_strpos($messageFormat, self::VARIABLE_VALUE_BASE64) !== false;

	if (!defined("ADMIN_SECTION") || ADMIN_SECTION != true)
		$this->siteId = SITE_ID;

	$this->userInfo = $this->getUserInfo();
	$this->url = preg_replace("/(&?sessid=[0-9a-z]+)/", "", $_SERVER["REQUEST_URI"]);
}