16 public function _getId()
18 return xoops_getrequest(
'tplset_id');
21 public function &_getHandler()
23 $handler =& xoops_getmodulehandler(
'tplset');
27 public function _setupObject()
29 parent::_setupObject();
31 if (
false == $this->isAllowDefault()) {
32 if (is_object($this->mObject) &&
'default' == $this->mObject->get(
'tplset_name')) {
33 $this->mObject =
null;
38 public function _setupActionForm()
41 $this->mActionForm->prepare();
44 public function isEnableCreate()
49 public function isAllowDefault()
54 public function executeViewInput(&$controller, &$xoopsUser, &$render)
56 $render->setTemplateName(
'tplset_edit.html');
57 $render->setAttribute(
'actionForm', $this->mActionForm);
58 $render->setAttribute(
'object', $this->mObject);
61 public function executeViewSuccess(&$controller, &$xoopsUser, &$render)
63 $controller->executeForward(
'./index.php?action=TplsetList');
66 public function executeViewError(&$controller, &$xoopsUser, &$render)
68 $controller->executeRedirect(
'./index.php?action=TplsetList', 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
71 public function executeViewCancel(&$controller, &$xoopsUser, &$render)
73 $controller->executeForward(
'./index.php?action=TplsetList');