Skip to content

Commit 95963bc

Browse files
author
Matt Humphrey
committed
Added owned and all project methods
1 parent 501813b commit 95963bc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,28 @@
55
class Projects extends AbstractApi
66
{
77
public function all($page = 1, $per_page = self::PER_PAGE)
8+
{
9+
return $this->get('projects/all', array(
10+
'page' => $page,
11+
'per_page' => $per_page
12+
));
13+
}
14+
public function accessible($page = 1, $per_page = self::PER_PAGE)
815
{
916
return $this->get('projects', array(
1017
'page' => $page,
1118
'per_page' => $per_page
1219
));
1320
}
1421

22+
public function owned($page = 1, $per_page = self::PER_PAGE)
23+
{
24+
return $this->get('projects/owned', array(
25+
'page' => $page,
26+
'per_page' => $per_page
27+
));
28+
}
29+
1530
public function show($project_id)
1631
{
1732
return $this->get('projects/'.urlencode($project_id));

0 commit comments

Comments
 (0)