• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/classes/general/functions.php
  • Класс: forumTextParser
  • Вызов: forumTextParser::__construct
function __construct($lang = false, $pathToSmiles = '', $type=false, $mode = 'full')
{
	parent::__construct();
	$this->arFiles = array();
	$this->arFilesParsed = array();

	$this->arUserfields = array();
	$this->ajaxPage = $GLOBALS["APPLICATION"]->GetCurPageParam("", array("bxajaxid", "logout"));
	$this->userPath = "";
	$this->userNameTemplate = str_replace(array("#NOBR#","#/NOBR#"), "", CSite::GetDefaultNameFormat());
	$this->smilesGallery = COption::GetOptionInt("forum", "smile_gallery_id", 0);

	if ($mode == 'full')
	{
		AddEventHandler("main", "TextParserAfterTags", Array(&$this, "ParserFile"));
	}
}