Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Group getAllGroupResourceIdByUserResourceId: Difference between revisions

From Catglobe Wiki
Nguyentanphong (talk | contribs)
No edit summary
Nguyentanphong (talk | contribs)
No edit summary
Line 1: Line 1:
'''Group_getAllGroupResourceIdByUserResourceId'''  
'''Group_getAllGroupResourceIdByUserResourceId'''  


   Get Resource ID of groups that user is a member. Empty will be returned If no group found  
   Get ResourceID of groups that user is a member. Empty will be returned If no group found.


'''Syntax&nbsp;<br>''' &nbsp;&nbsp; Group_getAllGroupResourceIdByUserResourceId(UserResourceID);  
'''Syntax&nbsp;<br>''' &nbsp;&nbsp; Group_getAllGroupResourceIdByUserResourceId(UserResourceID);  
Line 11: Line 11:
<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;&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.


[[Category:Group_Functions]]
[[Category:Group_Functions]]

Revision as of 08:13, 8 November 2011

Group_getAllGroupResourceIdByUserResourceId

   Get ResourceID of groups that user is a member. Empty will be returned If no group found.

Syntax 
   Group_getAllGroupResourceIdByUserResourceId(UserResourceID);


Arguments
   UserResourceID: is a number.

Return type
   An array, it is container type containing GroupResourceID.


Examples

array groupRID=Group_getAllGroupResourceIdByUserResourceId(37267087);
print(groupRID);                                                  // {37245971,37245974,37264371,37267083,37271315,37272473,37278189,37278394}
                                                                            // 37245971 - Navigation group ; 37245974 - Resource access group; 37267083,37271315,37272473,37278189,37278394 - normal group.