function &buildEditForm(&$object) { $parentCategoryHandler =& NBFrame::getHandler('SimpleLinkCategory', $this->mEnvironment); $this->addOptionArray('category_parent_id', $parentCategoryHandler->getParentSelectOptionArray($object->getKey())); $form =& parent::buildEditForm($object); return $form; }
function viewFormOp() { if (empty($this->mObjectForm)) { $this->setObjectForm('dummyForm'); } if (is_object($this->mObjectForm)) { $this->mObjectForm->bindAction($this, 1); $this->mObjectForm->prepare(); $xoopsForm =& $this->mObjectForm->buildEditForm($this->mObject); if ($this->mRender->mTemplate) { $xoopsForm->assign($this->mXoopsTpl); $this->mXoopsTpl->assign('title', $this->mCaption); $this->mXoopsTpl->assign('formhtml', $xoopsForm->render()); $this->mXoopsTpl->assign('errmsg', $this->mErrorMsg); } else { echo $xoopsForm->render(); } } }