@@ -28,7 +28,7 @@ class ApiPaginationComponent extends Component
28
28
*
29
29
* @var array
30
30
*/
31
- protected $ paging = [];
31
+ protected $ pagingInfo = [];
32
32
33
33
/**
34
34
* Injects the pagination info into the response if the current request is a
@@ -45,7 +45,7 @@ public function beforeRender(Event $event)
45
45
return ;
46
46
}
47
47
48
- $ this ->paging = $ controller ->request ->params ['paging ' ][$ controller ->name ];
48
+ $ this ->pagingInfo = $ controller ->request ->params ['paging ' ][$ controller ->name ];
49
49
$ config = $ this ->config ();
50
50
51
51
if (!empty ($ config ['aliases ' ])) {
@@ -56,7 +56,7 @@ public function beforeRender(Event $event)
56
56
$ this ->setVisibility ();
57
57
}
58
58
59
- $ controller ->set ($ this ->config ('key ' ), $ this ->paging );
59
+ $ controller ->set ($ this ->config ('key ' ), $ this ->pagingInfo );
60
60
$ controller ->viewVars ['_serialize ' ][] = $ this ->config ('key ' );
61
61
}
62
62
@@ -70,8 +70,8 @@ protected function setAliases()
70
70
{
71
71
$ aliases = $ this ->config ('aliases ' );
72
72
foreach ($ aliases as $ key => $ value ) {
73
- $ this ->paging [$ value ] = $ this ->paging [$ key ];
74
- unset($ this ->paging [$ key ]);
73
+ $ this ->pagingInfo [$ value ] = $ this ->pagingInfo [$ key ];
74
+ unset($ this ->pagingInfo [$ key ]);
75
75
}
76
76
}
77
77
@@ -84,9 +84,9 @@ protected function setAliases()
84
84
protected function setVisibility ()
85
85
{
86
86
$ visible = $ this ->config ('visible ' );
87
- foreach ($ this ->paging as $ key => $ value ) {
87
+ foreach ($ this ->pagingInfo as $ key => $ value ) {
88
88
if (!in_array ($ key , $ visible )) {
89
- unset($ this ->paging [$ key ]);
89
+ unset($ this ->pagingInfo [$ key ]);
90
90
}
91
91
}
92
92
}
0 commit comments