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

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 8月 6日 (日) 01:45:56 JST


Index: xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php
diff -u /dev/null xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1
--- /dev/null	Sun Aug  6 01:45:56 2006
+++ xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php	Sun Aug  6 01:45:56 2006
@@ -0,0 +1,50 @@
+<?php
+/**
+ * @package Legacy
+ * @version $Id: MiscOnlineAction.class.php,v 1.1.2.2 2006/08/05 13:21:06 minahito Exp $
+ */
+
+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/forms/OnlineFilterForm.class.php";
+
+class User_MiscOnlineAction extends User_AbstractListAction
+{
+	function prepare(&$controller, &$xoopsUser, &$moduleConfig)
+	{
+		$controller->mRoot->mLanguageManager->loadModuleMessageCatalog('user');
+	}
+	
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('online', 'user');
+		return $handler;
+	}
+
+	function &_getFilterForm(&$navi)
+	{
+		$filter =& new User_OnlineFilterForm($navi);
+		return $filter;
+	}
+
+	function _getBaseUrl()
+	{
+		return "./misc.php?type=Online";
+	}
+
+	function executeViewIndex(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("user_misc_online.html");
+		
+		foreach (array_keys($this->mObjects) as $key) {
+			$this->mObjects[$key]->loadModule();
+		}
+		
+		$render->setAttribute("objects", $this->mObjects);
+		$render->setAttribute("pageNavi", $this->mNavi);
+	}
+}
+
+?>


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