// if (is_object($xoopsUser)) { $comment->set('uid', $xoopsUser->get('uid')); } else { $comment->set('uid', 0); } // // Create action form instance and load from a comment object. // if (is_object($xoopsUser) && $xoopsUser->isAdmin()) { $actionForm = new Legacy_CommentEditForm_Admin(); } else { $actionForm = new Legacy_CommentEditForm(); } $actionForm->prepare(); $actionForm->load($res_comment); // // Get the icons of subject. // $handler =& xoops_gethandler('subjecticon'); $subjectIcons =& $handler->getObjects(); themecenterposts($comment->getVar('com_title'), $r_text); // // Render comment-form to render buffer with using Legacy_RenderSystem. // $renderSystem =& $t_root->getRenderSystem($t_root->mContext->mBaseRenderSystemName); $renderTarget =& $renderSystem->createRenderTarget('main'); $renderTarget->setTemplateName("legacy_comment_edit.html"); $renderTarget->setAttribute("actionForm", $actionForm); $renderTarget->setAttribute("subjectIcons", $subjectIcons); $renderTarget->setAttribute("xoopsModuleConfig", $xoopsModuleConfig);
$com_pid = $comment->getVar('com_pid'); $com_status = $comment->getVar('com_status'); $com_rootid = $comment->getVar('com_rootid'); // // Get the icons of subject. // $handler =& xoops_gethandler('subjecticon'); $subjectIcons =& $handler->getObjects(); if ($xoopsModule->getVar('dirname') != 'system') { if (is_object($xoopsUser) && $xoopsUser->isAdmin()) { $actionForm = new Legacy_CommentEditForm_Admin(); } else { $actionForm = new Legacy_CommentEditForm(); } $actionForm->prepare(); $actionForm->load($comment); // // Render comment-form to render buffer with using Legacy_RenderSystem. // $renderSystem =& $t_root->getRenderSystem($t_root->mContext->mBaseRenderSystemName); $renderTarget =& $renderSystem->createRenderTarget('main'); $renderTarget->setTemplateName("legacy_comment_edit.html"); $renderTarget->setAttribute("actionForm", $actionForm); $renderTarget->setAttribute("subjectIcons", $subjectIcons); $renderTarget->setAttribute("xoopsModuleConfig", $xoopsModuleConfig); $renderTarget->setAttribute("com_order", $com_order); // // Rendering // $renderSystem->render($renderTarget); //
function load(&$obj) { parent::load($obj); $this->set('dohtml', $obj->get('dohtml')); }