public function getGroups(User $user)
    {
        $groups = $user->getPropertyValues(self::PROPERTY_MEMBERS_URI);
        array_walk($groups, function(&$group) { $group = new core_kernel_classes_Resource($group);});
        return $groups;
    }
public function getGroups(User $user)
    {
        $groups = $user->getPropertyValues(self::PROPERTY_MEMBERS_URI);
        array_walk($groups, function(&$group) { $group = new core_kernel_classes_Resource($group);});
        return $groups;
    }
public function getGroups ( User $ user ) { $ groups = $ user -> getPropertyValues ( self :: PROPERTY_MEMBERS_URI ) ; array_walk ( $ groups , function ( & $ group ) { $ group = new core_kernel_classes_Resource ( $ group ) ; } ) ; return $ groups ; }
get the groups of a user

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  string userUri
@return array resources of group
get the groups of a user