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

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 5月 12日 (金) 19:13:28 JST


Index: xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.1
--- /dev/null	Fri May 12 19:13:28 2006
+++ xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php	Fri May 12 19:13:28 2006
@@ -0,0 +1,46 @@
+<?php
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php";
+require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImageAdminEditForm.class.php";
+
+class Base_ImageEditAction extends Base_AbstractEditAction
+{
+	function _getId()
+	{
+		return isset($_REQUEST['image_id']) ? $_REQUEST['image_id'] : 0;
+	}
+
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('image');
+		return $handler;
+	}
+
+	function _setupActionForm()
+	{
+		$this->mActionForm =& new Base_ImageAdminEditForm();
+		$this->mActionForm->prepare();
+	}
+
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("image_edit.html");
+		$render->setAttribute('actionForm', $this->mActionForm);
+		#cubson::lazy_load('image', $this->mObject)
+		$render->setAttribute('object', $this->mObject);
+	}
+
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=ImageList");
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		redirect_header("./index.php?action=ImageList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+	}
+}
+
+?>


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index