[xoops-cvslog 2674] CVS update: xoops2jp/html/modules/base/admin/actions

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 4月 7日 (金) 13:47:10 JST


Index: xoops2jp/html/modules/base/admin/actions/CustomBlockDeleteAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/CustomBlockDeleteAction.class.php:1.1.2.1
--- /dev/null	Fri Apr  7 13:47:10 2006
+++ xoops2jp/html/modules/base/admin/actions/CustomBlockDeleteAction.class.php	Fri Apr  7 13:47:10 2006
@@ -0,0 +1,53 @@
+<?php
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_MODULE_PATH . "/base/class/AbstractDeleteAction.class.php";
+require_once XOOPS_MODULE_PATH . "/base/admin/forms/CustomBlockDeleteForm.class.php";
+
+class Legacy_CustomBlockDeleteAction extends Legacy_AbstractDeleteAction
+{
+	function _getId()
+	{
+		return isset($_REQUEST['bid']) ? $_REQUEST['bid'] : 0;
+	}
+
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('newblocks');
+		return $handler;
+	}
+
+	function _setupActionForm()
+	{
+		$this->mActionForm =& new Legacy_CustomBlockDeleteForm();
+		$this->mActionForm->prepare();
+	}
+
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("customblock_delete.html");
+		$render->setAttribute('actionForm', $this->mActionForm);
+		
+		//
+		// lazy loading
+		//
+		$this->mObject->loadModule();
+		$this->mObject->loadColumn();
+		$this->mObject->loadCachetime();
+		
+		$render->setAttribute('object', $this->mObject);
+	}
+
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=BlockInstallList");
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		redirect_header("./index.php?action=BlockInstallList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+	}
+}
+
+?>


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る