• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/lib/comments/baseobject.php
  • Класс: BitrixForumCommentsBaseObject
  • Вызов: BaseObject::setTopic
protected function setTopic()
{
	if (!array_key_exists($this->getEntity()->getXmlId(), self::$topics))
	{
		$dbRes = CForumTopic::getList(null, array(
			"FORUM_ID" => $this->forum["ID"],
			"XML_ID" => $this->getEntity()->getXmlId()
		));
		self::$topics[$this->getEntity()->getXmlId()] = (($res = $dbRes->fetch()) && $res ? $res : null);
	}
	$this->topic = self::$topics[$this->getEntity()->getXmlId()];
	return $this;
}