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

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 5月 9日 (火) 19:20:23 JST


Index: xoops2jp/html/modules/base/admin/actions/ImagecategoryEditAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/ImagecategoryEditAction.class.php:1.1.2.1
--- /dev/null	Tue May  9 19:20:23 2006
+++ xoops2jp/html/modules/base/admin/actions/ImagecategoryEditAction.class.php	Tue May  9 19:20:23 2006
@@ -0,0 +1,59 @@
+<?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/ImagecategoryAdminEditForm.class.php";
+require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImagecategoryAdminNewForm.class.php";
+
+class Legacy_ImagecategoryEditAction extends Legacy_AbstractEditAction
+{
+	function _getId()
+	{
+		return isset($_REQUEST['imgcat_id']) ? $_REQUEST['imgcat_id'] : 0;
+	}
+
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('imagecategory');
+		return $handler;
+	}
+
+	function _setupObject()
+	{
+		parent::_setupObject();
+		$this->mObject->loadReadGroups();
+		$this->mObject->loadUploadGroups();
+	}
+
+	function _setupActionForm()
+	{
+		$this->mActionForm = $this->mObject->isNew() ? new Legacy_ImagecategoryAdminNewForm()
+		                                             : new Legacy_ImagecategoryAdminEditForm();
+		
+		$this->mActionForm->prepare();
+	}
+
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("imagecategory_edit.html");
+		$render->setAttribute('actionForm', $this->mActionForm);
+		$render->setAttribute('object', $this->mObject);
+		
+		$handler =& xoops_gethandler('group');
+		$groupArr =& $handler->getObjects();
+		$render->setAttribute('groupArr', $groupArr);
+	}
+
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=ImagecategoryList");
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		redirect_header("./index.php?action=ImagecategoryList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+	}
+}
+
+?>
Index: xoops2jp/html/modules/base/admin/actions/ImagecategoryDeleteAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/ImagecategoryDeleteAction.class.php:1.1.2.1
--- /dev/null	Tue May  9 19:20:23 2006
+++ xoops2jp/html/modules/base/admin/actions/ImagecategoryDeleteAction.class.php	Tue May  9 19:20:23 2006
@@ -0,0 +1,46 @@
+<?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/ImagecategoryAdminDeleteForm.class.php";
+
+class Legacy_ImagecategoryDeleteAction extends Legacy_AbstractDeleteAction
+{
+	function _getId()
+	{
+		return isset($_REQUEST['imgcat_id']) ? $_REQUEST['imgcat_id'] : 0;
+	}
+
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('imagecategory');
+		return $handler;
+	}
+
+	function _setupActionForm()
+	{
+		$this->mActionForm =& new Legacy_ImagecategoryAdminDeleteForm();
+		$this->mActionForm->prepare();
+	}
+
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("imagecategory_delete.html");
+		$render->setAttribute('actionForm', $this->mActionForm);
+		#cubson::lazy_load('imagecategory', $this->mObject);
+		$render->setAttribute('object', $this->mObject);
+	}
+
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=ImagecategoryList");
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		redirect_header("./index.php?action=ImagecategoryList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+	}
+}
+
+?>
Index: xoops2jp/html/modules/base/admin/actions/ImagecategoryListAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/ImagecategoryListAction.class.php:1.1.2.1
--- /dev/null	Tue May  9 19:20:23 2006
+++ xoops2jp/html/modules/base/admin/actions/ImagecategoryListAction.class.php	Tue May  9 19:20:23 2006
@@ -0,0 +1,38 @@
+<?php
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_MODULE_PATH . "/base/class/PageNavigator.class.php";
+require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php";
+require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImagecategoryFilterForm.class.php";
+
+class Legacy_ImagecategoryListAction extends Legacy_AbstractListAction
+{
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('imagecategory');
+		return $handler;
+	}
+
+	function &_getFilterForm(&$navi)
+	{
+		$filter =& new Legacy_ImagecategoryFilterForm($navi);
+		return $filter;
+	}
+
+	function _getBaseUrl()
+	{
+		return "./index.php?action=ImagecategoryList";
+	}
+
+	function executeViewIndex(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("imagecategory_list.html");
+		#cubson::lazy_load_array('imagecategory', $this->mObjects);
+		$render->setAttribute("objects", $this->mObjects);
+		$render->setAttribute("pageNavi", $this->mNavi);
+		
+	}
+}
+
+?>


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