Ejemplo n.º 1
0
$com_itemid = $comment->getVar('com_itemid');
$com_title = $comment->getVar('com_title', 'E');
$com_text = $comment->getVar('com_text', 'E');
$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
Ejemplo n.º 2
0
 function load(&$obj)
 {
     parent::load($obj);
     $this->set('dohtml', $obj->get('dohtml'));
 }