File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
class Users extends AbstractApi
6
6
{
7
- public function all ($ active = null )
7
+ public function all ($ active = null , $ page = 1 , $ per_page = self :: PER_PAGE )
8
8
{
9
- if (!is_null ($ active )) {
10
- return $ this ->get ('users ' , array (
11
- 'active ' => $ active
12
- ));
13
- }
14
-
15
- return $ this ->get ('users ' );
9
+ return $ this ->get ('users ' , array (
10
+ 'active ' => $ active ,
11
+ 'page ' => $ page ,
12
+ 'per_page ' => $ per_page
13
+ ));
16
14
}
17
15
18
- public function search ($ query , $ active = null )
16
+ public function search ($ query , $ active = null , $ page = 1 , $ per_page = self :: PER_PAGE )
19
17
{
20
18
return $ this ->get ('users ' , array (
21
19
'search ' => $ query ,
22
- 'active ' => $ active
20
+ 'active ' => $ active ,
21
+ 'page ' => $ page ,
22
+ 'per_page ' => $ per_page
23
23
));
24
24
}
25
25
You can’t perform that action at this time.
0 commit comments