Exemplo n.º 1
0
	/**
	* Returns the IDs of ALL groups this user is a member to, recursively.
	* Similar to {@link getAllGroups()}, except this returns IDs.
	*/
	function getAllGroupIDs($project=0,$id=0)
	{
		$group=new LPC_Group();
		$groupIDs=$this->getGroupIDs($project,$id);
		$indirectIDs=array();
		foreach($groupIDs as $groupID)
			$indirectIDs=array_merge($indirectIDs,$group->getAllMembershipGroupIDs($groupID,$project));
		return array_unique(array_merge($groupIDs,$indirectIDs));
	}