12 public function _getId()
14 return xoops_getrequest(
'tpl_id');
17 public function &_getHandler()
19 $handler =& xoops_getmodulehandler(
'tplfile');
23 public function _setupObject()
25 parent::_setupObject();
26 if (
null != $this->mObject &&
'default' == $this->mObject->get(
'tpl_tplset')) {
27 $this->mObject =
null;
31 public function _setupActionForm()
34 $this->mActionForm->prepare();
37 public function executeViewInput(&$controller, &$xoopsUser, &$render)
39 $render->setTemplateName(
'tplfile_delete.html');
40 $render->setAttribute(
'actionForm', $this->mActionForm);
41 $this->mObject->loadSource();
42 $render->setAttribute(
'object', $this->mObject);
45 public function executeViewSuccess(&$controller, &$xoopsUser, &$render)
47 require_once XOOPS_ROOT_PATH .
'/class/template.php';
50 $xoopsTpl->clear_cache(
'db:' . $this->mObject->get(
'tpl_file'));
51 $xoopsTpl->clear_compiled_tpl(
'db:' . $this->mObject->get(
'tpl_file'));
53 $tplset = $this->mObject->get(
'tpl_tplset');
54 $module = $this->mObject->get(
'tpl_module');
55 $controller->executeForward(
"./index.php?action=TplfileList&tpl_tplset={$tplset}&tpl_module={$module}");
58 public function executeViewError(&$controller, &$xoopsUser, &$render)
60 $controller->executeRedirect(
'./index.php?action=TplfileList', 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
63 public function executeViewCancel(&$controller, &$xoopsUser, &$render)
65 $tplset = $this->mObject->get(
'tpl_tplset');
66 $module = $this->mObject->get(
'tpl_module');
67 $controller->executeForward(
"./index.php?action=TplfileList&tpl_tplset={$tplset}&tpl_module={$module}");