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

Back to archive index

Minahito minah****@users*****
2006年 8月 25日 (金) 19:17:03 JST


Index: xoops2jp/html/modules/user/class/groups_users_link.php
diff -u xoops2jp/html/modules/user/class/groups_users_link.php:1.1.2.2 xoops2jp/html/modules/user/class/groups_users_link.php:1.1.2.3
--- xoops2jp/html/modules/user/class/groups_users_link.php:1.1.2.2	Tue Mar 28 22:32:03 2006
+++ xoops2jp/html/modules/user/class/groups_users_link.php	Fri Aug 25 19:17:03 2006
@@ -17,6 +17,16 @@
 	var $mTable = "groups_users_link";
 	var $mPrimary = "linkid";
 	var $mClass = "UserGroups_users_linkObject";
+	
+	function isUserOfGroup($uid, $groupid)
+	{
+		$criteria =& new CriteriaCompo();
+		$criteria->add(new Criteria('groupid', $groupid));
+		$criteria->add(new Criteria('uid', $uid));
+		
+		$objs =& $this->getObjects($criteria);
+		return (count($objs) > 0 && is_object($objs[0]));
+	}
 }
 
 ?>


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