Пример #1
0
$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
    //
    $renderSystem->render($renderTarget);
Пример #2
0
 function prepare()
 {
     parent::prepare();
     //
     // Set form properties
     //
     $this->mFormProperties['dohtml'] = new XCube_BoolProperty('dohtml');
 }