From 524bf0d567e4a4754ede2a330bf5ee138642d07f Mon Sep 17 00:00:00 2001 From: etter_t Date: Thu, 8 Dec 2016 16:43:41 +0100 Subject: [PATCH 1/3] added pagination parameters to project members function --- composer.json | 2 +- lib/Gitlab/Api/Projects.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 3c29600a4..cea5c43dd 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "m4tthumphrey/php-gitlab-api", + "name": "psi-dev-group/php-gitlab-api", "type": "library", "description": "GitLab API client", "homepage": "https://github.com/m4tthumphrey/php-gitlab-api", diff --git a/lib/Gitlab/Api/Projects.php b/lib/Gitlab/Api/Projects.php index 52a40690a..5a28ce82e 100644 --- a/lib/Gitlab/Api/Projects.php +++ b/lib/Gitlab/Api/Projects.php @@ -178,12 +178,16 @@ public function trace($project_id, $build_id) /** * @param int $project_id * @param string $username_query + * @param int $page + * @param int $per_page * @return mixed */ - public function members($project_id, $username_query = null) + public function members($project_id, $username_query = null, $page = 1, $per_page = self::PER_PAGE) { return $this->get($this->getProjectPath($project_id, 'members'), array( - 'query' => $username_query + 'query' => $username_query, + 'page' => $page, + 'per_page' => $per_page )); } From e7223ac14c51648d08055b2e3f168cc1ca4dac8f Mon Sep 17 00:00:00 2001 From: tobiasetter Date: Fri, 15 Dec 2017 13:39:21 +0100 Subject: [PATCH 2/3] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cea5c43dd..3c29600a4 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "psi-dev-group/php-gitlab-api", + "name": "m4tthumphrey/php-gitlab-api", "type": "library", "description": "GitLab API client", "homepage": "https://github.com/m4tthumphrey/php-gitlab-api", From e068932318cd8dfd15a2749b327899fa3df45502 Mon Sep 17 00:00:00 2001 From: tobiasetter Date: Fri, 15 Dec 2017 13:46:30 +0100 Subject: [PATCH 3/3] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3c29600a4..cea5c43dd 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "m4tthumphrey/php-gitlab-api", + "name": "psi-dev-group/php-gitlab-api", "type": "library", "description": "GitLab API client", "homepage": "https://github.com/m4tthumphrey/php-gitlab-api",