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

Back to archive index

Minahito minah****@users*****
2005年 12月 25日 (日) 19:53:23 JST


Index: xoops2jp/html/modules/user/admin/actions/UserGroupListAction.class.php
diff -u xoops2jp/html/modules/user/admin/actions/UserGroupListAction.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/actions/UserGroupListAction.class.php:1.1.2.2
--- xoops2jp/html/modules/user/admin/actions/UserGroupListAction.class.php:1.1.2.1	Thu Dec 22 20:24:47 2005
+++ xoops2jp/html/modules/user/admin/actions/UserGroupListAction.class.php	Sun Dec 25 19:53:23 2005
@@ -2,33 +2,7 @@
 
 require_once XOOPS_ROOT_PATH."/class/XCube_PageNavigator.class.php";
 require_once XOOPS_ROOT_PATH."/modules/user/admin/forms/UserActionFilterForm.class.php";
-
-/**
- * This extends XoopsGroup to that user group list can get count of users.
- */
-class XoopsGroupEx extends XoopsGroup
-{
-	/**
-	 * $group is used for initialize. This class is no adapter pattern.
-	 * @param $group XoopsGroup
-	 */
-	function XoopsGroupEx($group = null)
-	{
-		parent::XoopsGroup();
-		$this->initVar('user_count', XOBJ_DTYPE_INT, null, false);
-
-		$this->setVar('groupid', $group->getVar('groupid'));
-		$this->setVar('name', $group->getVar('name'));
-		$this->setVar('description', $group->getVar('description'));
-		$this->setVar('group_type', $group->getVar('group_type'));
-
-		if (is_object($group)) {
-			$memberHandler =& xoops_gethandler('member');
-
-			$this->setVar('user_count', $memberHandler->getUserCountByGroup($this->getVar('groupid')));
-		}
-	}
-}
+require_once XOOPS_ROOT_PATH."/modules/user/admin/class/XoopsGroupEx.class.php";
 
 class UserGroupListAction extends UserAction
 {


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