Difference between revisions of "Group getAllGroupResourceIdByUserResourceId"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
'''Group_getAllGroupResourceIdByUserResourceId'''  
 
'''Group_getAllGroupResourceIdByUserResourceId'''  
  
   Get ResourceID of groups that user is a member. Empty will be returned If no group found.
+
&nbsp;&nbsp; Get ResourceID of groups that user is a member. <br>
  
'''Syntax&nbsp;<br>''' &nbsp;&nbsp; Group_getAllGroupResourceIdByUserResourceId(UserResourceID);
+
'''Syntax&nbsp;<br>''' &nbsp;&nbsp; Group_getAllGroupResourceIdByUserResourceId(UserResourceID)  
  
<br> '''Arguments<br>''' &nbsp;&nbsp; UserResourceID: is a number.  
+
<br> '''Arguments<br>''' &nbsp;&nbsp; UserResourceID: is a number.It is resource id of user.<br>
  
'''Return type<br>''' &nbsp;&nbsp; An array, it is container type containing GroupResourceID.  
+
'''Return type<br>''' &nbsp;&nbsp; An array, which contain the resource id of groups that user is member of.  
  
 
<br> '''Examples'''  
 
<br> '''Examples'''  
  
array groupRID=Group_getAllGroupResourceIdByUserResourceId(37267087); <br>print(groupRID);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // {37245971,37245974,37264371,37267083,37271315,37272473,37278189,37278394} <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// 37245971 - Navigation group&nbsp;;&nbsp;37245974 - Resource access group; 37267083,37271315,37272473,37278189,37278394 - normal group.
+
array groupRID=Group_getAllGroupResourceIdByUserResourceId(37267087); <br>print(groupRID);&nbsp;&nbsp;&nbsp;&nbsp; // {37245971,37245974,37264371,37267083,37271315,37272473,37278189,37278394} <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
  
 
[[Category:Group_Functions]]
 
[[Category:Group_Functions]]

Revision as of 12:21, 8 November 2011

Group_getAllGroupResourceIdByUserResourceId

   Get ResourceID of groups that user is a member.

Syntax 
   Group_getAllGroupResourceIdByUserResourceId(UserResourceID)


Arguments
   UserResourceID: is a number.It is resource id of user.

Return type
   An array, which contain the resource id of groups that user is member of.


Examples

array groupRID=Group_getAllGroupResourceIdByUserResourceId(37267087);
print(groupRID);     // {37245971,37245974,37264371,37267083,37271315,37272473,37278189,37278394}