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

Back to archive index

Minahito minah****@users*****
2006年 1月 26日 (木) 01:17:36 JST


Index: xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.1
--- /dev/null	Thu Jan 26 01:17:36 2006
+++ xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php	Thu Jan 26 01:17:36 2006
@@ -0,0 +1,34 @@
+<?php
+
+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/CommentFilterForm.class.php";
+
+class Legacy_CommentListAction extends Legacy_AbstractListAction
+{
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('comment');
+		return $handler;
+	}
+
+	function &_getFilterForm(&$navi)
+	{
+		$filter =& new Legacy_CommentFilterForm($navi);
+		return $filter;
+	}
+
+	function _getBaseUrl()
+	{
+		return "./index.php?action=CommentList";
+	}
+
+	function executeViewIndex(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("comment_list.html");
+		$render->setAttribute("objects", $this->mObjects);
+		$render->setAttribute("pageNavi", $this->mNavi);
+	}
+}
+
+?>
Index: xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.1
--- /dev/null	Thu Jan 26 01:17:36 2006
+++ xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php	Thu Jan 26 01:17:36 2006
@@ -0,0 +1,43 @@
+<?php
+
+require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php";
+require_once XOOPS_MODULE_PATH . "/base/admin/forms/CommentAdminEditForm.class.php";
+
+class Legacy_CommentEditAction extends Legacy_AbstractEditAction
+{
+	function _getId()
+	{
+		return isset($_REQUEST['com_id']) ? $_REQUEST['com_id'] : 0;
+	}
+
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('comment');
+		return $handler;
+	}
+
+	function _setupActionForm()
+	{
+		$this->mActionForm =& new Legacy_CommentAdminEditForm();
+		$this->mActionForm->prepare();
+	}
+
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("comment_edit.html");
+		$render->setAttribute('actionForm', $this->mActionForm);
+		$render->setAttribute('object', $this->mObject);
+	}
+
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=CommentList");
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		redirect_header("./index.php?action=CommentList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+	}
+}
+
+?>
Index: xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.1
--- /dev/null	Thu Jan 26 01:17:36 2006
+++ xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php	Thu Jan 26 01:17:36 2006
@@ -0,0 +1,43 @@
+<?php
+
+require_once XOOPS_MODULE_PATH . "/base/class/AbstractDeleteAction.class.php";
+require_once XOOPS_MODULE_PATH . "/base/admin/forms/CommentAdminDeleteForm.class.php";
+
+class Legacy_CommentDeleteAction extends Legacy_AbstractDeleteAction
+{
+	function _getId()
+	{
+		return isset($_REQUEST['com_id']) ? $_REQUEST['com_id'] : 0;
+	}
+
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('comment');
+		return $handler;
+	}
+
+	function _setupActionForm()
+	{
+		$this->mActionForm =& new Legacy_CommentAdminDeleteForm();
+		$this->mActionForm->prepare();
+	}
+
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("comment_delete.html");
+		$render->setAttribute('actionForm', $this->mActionForm);
+		$render->setAttribute('object', $this->mObject);
+	}
+
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=CommentList");
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		redirect_header("./index.php?action=CommentList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED);
+	}
+}
+
+?>


xoops-cvslog メーリングリストの案内
Back to archive index