[xoops-cvslog 3597] CVS update: xoops2jp/html/modules/user/class

Back to archive index

Minahito minah****@users*****
2006年 7月 13日 (木) 19:54:30 JST


Index: xoops2jp/html/modules/user/class/groups.php
diff -u xoops2jp/html/modules/user/class/groups.php:1.1.2.2 xoops2jp/html/modules/user/class/groups.php:1.1.2.3
--- xoops2jp/html/modules/user/class/groups.php:1.1.2.2	Tue Mar 28 22:32:03 2006
+++ xoops2jp/html/modules/user/class/groups.php	Thu Jul 13 19:54:30 2006
@@ -6,11 +6,17 @@
 {
 	function UserGroupsObject()
 	{
-		$this->initVar('groupid', XOBJ_DTYPE_INT, '', true);
+		$this->initVar('groupid', XOBJ_DTYPE_INT, 0, true);
 		$this->initVar('name', XOBJ_DTYPE_STRING, '', true, 50);
 		$this->initVar('description', XOBJ_DTYPE_TEXT, '', true);
 		$this->initVar('group_type', XOBJ_DTYPE_STRING, '', true, 10);
 	}
+	
+	function getUserCount()
+	{
+		$handler =& xoops_gethandler('member');
+		return $handler->getUserCountByGroup($this->get('groupid'));
+	}
 }
 
 class UserGroupsHandler extends XoopsObjectGenericHandler


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