public function getAllUsersFromForgeUserGroup(User_ForgeUGroup $user_group) { $rows = $this->users_dao->getUsersByForgeUserGroupId($user_group->getId()); if (!$rows) { return array(); } return $rows->instanciateWith(array($this, 'instantiateFromRow')); }
public function userIsAlreadyInTheGroup(PFUser $user, User_ForgeUGroup $user_group) { return $this->users_dao->isUserInGroup($user->getId(), $user_group->getId()); }