Skip to content

Commit 67794ac

Browse files
authored
minor #843 further detail on ResultPager parameters (sepiariver)
This PR was merged into the 2.13.x-dev branch. Discussion ---------- What changed? Documentation file result_pager.md Why? Previously it was non-obvious how parameters were passed to called methods. Making it more obvious enables users to implement ResultPager with greater ease and confidence. Commits ------- 05cdb4d further detail on ResultPager parameters
2 parents 4f388bc + 05cdb4d commit 67794ac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/result_pager.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Parameters of the `fetchAll` method:
2121
* The method of the API object you're using
2222
* The parameters of the method
2323

24+
Parameters are passed to the API method via [call_user_func_array](https://www.php.net/manual/en/function.call-user-func-array.php).
25+
26+
```php
27+
$parameters = array('github', 'all', 1); // $organization, $type, $page
28+
```
29+
2430
#### Get the first page
2531

2632
```php

0 commit comments

Comments
 (0)