[xoops-cvslog 2752] CVS update: xoops2jp/html/modules/user/admin/actions

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 4月 11日 (火) 18:16:26 JST


Index: xoops2jp/html/modules/user/admin/actions/UserSearchListAction.class.php
diff -u /dev/null xoops2jp/html/modules/user/admin/actions/UserSearchListAction.class.php:1.1.2.1
--- /dev/null	Tue Apr 11 18:16:26 2006
+++ xoops2jp/html/modules/user/admin/actions/UserSearchListAction.class.php	Tue Apr 11 18:16:26 2006
@@ -0,0 +1,41 @@
+<?php
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_MODULE_PATH . "/user/class/PageNavigator.class.php";
+require_once XOOPS_MODULE_PATH . "/user/class/AbstractListAction.class.php";
+require_once XOOPS_MODULE_PATH . "/user/admin/forms/UserSearchFilterForm.class.php";
+
+class User_UserSearchListAction extends User_AbstractListAction
+{
+	function &_getHandler()
+	{
+		$handler =& xoops_gethandler('user');
+		return $handler;
+	}
+
+	function &_getFilterForm(&$navi)
+	{
+		$filter =& new User_UserSearchFilterForm($navi);
+		return $filter;
+	}
+	
+	function _getBaseUrl()
+	{
+		return "./index.php?action=UsersSearchList";
+	}
+	
+	function execute(&$controller, &$xoopsUser)
+	{
+		return $this->getDefaultView($controller, $xoopsUser);
+	}
+
+	function executeViewIndex(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("user_search_list.html");
+		$render->setAttribute("objects", $this->mObjects);
+		$render->setAttribute("pageNavi", $this->mNavi);
+	}
+}
+
+?>
Index: xoops2jp/html/modules/user/admin/actions/UserSearchAction.class.php
diff -u /dev/null xoops2jp/html/modules/user/admin/actions/UserSearchAction.class.php:1.1.2.1
--- /dev/null	Tue Apr 11 18:16:26 2006
+++ xoops2jp/html/modules/user/admin/actions/UserSearchAction.class.php	Tue Apr 11 18:16:26 2006
@@ -0,0 +1,53 @@
+<?php
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_MODULE_PATH . "/user/admin/forms/UserSearchForm.class.php";
+
+class User_UserSearchAction extends User_Action
+{
+	var $mActionForm = null;
+	
+	function prepare(&$controller, &$xoopsUser)
+	{
+		$this->mActionForm =& new User_UserSearchForm();
+		$this->mActionForm->prepare();
+	}
+	
+	function getDefaultView(&$controller, &$xoopsUser)
+	{
+		$this->mActionForm->fetch();
+		
+		return USER_FRAME_VIEW_INPUT;
+	}
+	
+	function execute(&$controller, &$xoopsUser)
+	{
+		$this->mActionForm->fetch();
+		$this->mActionForm->validate();
+		
+		if ($this->mActionForm->hasError()) {
+			return $this->getDefaultView();
+		}
+		
+		return USER_FRAME_VIEW_SUCCESS;
+	}
+	
+	function executeViewInput(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("user_search.html");
+		$render->setAttribute("actionForm", $this->mActionForm);
+	}
+
+	function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem)
+	{
+		$controller->executeForward("./index.php?action=UserSearchList");
+	}
+
+	function executeViewError(&$controller,&$xoopsUser,&$renderSystem)
+	{
+		XCube_Utils::redirectHeader("index.php", 1, "*ERROR*");
+	}
+}
+
+?>
\ No newline at end of file


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