/** * Построение простой дискуссии - для одного листа. Выполняет основные действия. */ public final function buildDiscussionSimple(DiscussionMsg $leaf) { //Tree js data $treeData[self::JS_DATA_UPDOWN] = true; $treeData[self::JS_DATA_THREAD] = $leaf->getThreadId(); $treeData[self::JS_DATA_UNIQUE] = $this->SETTINGS->getUnique(); $treeData[self::JS_DATA_THEMED] = $this->SETTINGS->isThemed(); $params['tree'] = $this->buildLeaf($leaf, true); $params['data'] = PsHtml::data2string($treeData); return PSSmarty::template('discussion/common/discussion_simple.tpl', $params)->fetch(); }