File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
### Usage examples
5
5
6
- Get all repositories of a organization
6
+ #### Get all repositories of a organization
7
7
8
8
``` php
9
9
$client = new Github\Client();
@@ -15,7 +15,14 @@ $parameters = array('github');
15
15
$result = $paginator->fetchAll($organizationApi, 'repositories', $parameters);
16
16
```
17
17
18
- Get the first page
18
+ Parameters of the ` fetchAll ` method:
19
+
20
+ * The API object you're working with
21
+ * The method of the API object you're using
22
+ * The parameters of the method
23
+
24
+ #### Get the first page
25
+
19
26
``` php
20
27
$client = new Github\Client();
21
28
@@ -26,22 +33,26 @@ $parameters = array('github');
26
33
$result = $paginator->fetch($organizationApi, 'repositories', $parameters);
27
34
```
28
35
29
- Check for a next page:
36
+ #### Check for a next page:
37
+
30
38
``` php
31
39
$paginator->hasNext();
32
40
```
33
41
34
- Get next page:
42
+ #### Get next page:
43
+
35
44
``` php
36
45
$paginator->fetchNext();
37
46
```
38
47
39
- Check for previous page:
48
+ #### Check for previous page:
49
+
40
50
``` php
41
51
$paginator->hasPrevious();
42
52
```
43
53
44
- Get previous page:
54
+ #### Get previous page:
55
+
45
56
``` php
46
57
$paginator->fetchPrevious();
47
58
```
You can’t perform that action at this time.
0 commit comments