Zend/Gdata/Gapps.php
public function retrieveGroups($memberId, $directOnly = null)
    {
        $query = $this->newGroupQuery();
        $query->setMember($memberId);
        if($directOnly != null) {
            $query->setDirectOnly($directOnly);
        }
        return $this->getGroupFeed($query);
    }
public function retrieveGroups($memberId, $directOnly = null)
    {
        $query = $this->newGroupQuery();
        $query->setMember($memberId);
        if($directOnly != null) {
            $query->setDirectOnly($directOnly);
        }
        return $this->getGroupFeed($query);
    }
public function retrieveGroups ( $ memberId , $ directOnly = null ) { $ query = $ this -> newGroupQuery ( ) ; $ query -> setMember ( $ memberId ) ; if ( $ directOnly != null ) { $ query -> setDirectOnly ( $ directOnly ) ; } return $ this -> getGroupFeed ( $ query ) ; }
Retrieve all of the groups that a user is a member of

@param string $memberId Member username
@param bool $directOnly (Optional) If true, members with direct association
only will be considered
@return Zend_Gdata_Gapps_GroupFeed Collection of Zend_Gdata_GroupEntry
objects representing all groups member is apart of in the domain.
Retrieve all of the groups that a user is a member of