/** * Add the specified user to the specified group. * * @param int $userId * @param int $groupId * @return GalleryStatus a status code */ function addUserToGroup($userId, $groupId) { MyOOS_CoreApi::requireOnce( 'modules/core/classes/helpers/GalleryUserGroupHelper_medium.class'); return GalleryUserGroupHelper_medium::addUserToGroup($userId, $groupId); }
/** * Return a list of user ids belonging to a group * * You can specify how many userids to list, and where the windows is in * the list of all users. * * @param int $groupId * @param int $count the number of user ids desired * @param int $offset the start of the range * @param string $substring substring to match against the username * @return array GalleryStatus a status code * array user id => user name */ function fetchUsersForGroup($groupId, $count = null, $offset = null, $substring = null) { MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryUserGroupHelper_medium.class'); return GalleryUserGroupHelper_medium::fetchUsersForGroup($groupId, $count, $offset, $substring); }