Skip to content

Commit 33718a2

Browse files
committed
Add support for custom amount in listing groups.
1 parent dbf1a42 commit 33718a2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/GroupManage.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ private function expandHomeDirectory($path)
8585
return str_replace('~', realpath($homeDirectory), $path);
8686
}
8787

88-
8988
public function addToGroup($email, $role, $group)
9089
{
9190

@@ -122,11 +121,9 @@ public function inGroup($email, $group)
122121
return false;
123122
}
124123

125-
public function listGroup($group)
124+
public function listGroup($group, $count = 200)
126125
{
127-
return $this->service->members->listMembers($group)['members'];
126+
$parameters = array('maxResults' => $count);
127+
return $this->service->members->listMembers($group, $parameters)['members'];
128128
}
129-
}
130-
131-
132-
?>
129+
}

0 commit comments

Comments
 (0)