Pagination
class Pagination extends Dto (View source)
Class represents pagination information
Properties
int | $Page | Page number |
|
int | $ItemsPerPage | Number of items per page |
|
int | $TotalPages | Number of total pages |
|
int | $TotalItems | Number of total items |
|
array | $Links | Array with links to navigation. |
Methods
Get array with mapping which property is object and what type of object.
Get array with mapping which property depends on other property To be overridden in child class if has any dependent objects.
Get array with read only properties - not used in response To be overridden in child class if has any read-only properties.
Construct
Details
in
Dto at line 15
array
GetSubObjects()
Get array with mapping which property is object and what type of object.
To be overridden in child class if has any sub objects.
in
Dto at line 25
array
GetDependsObjects()
Get array with mapping which property depends on other property To be overridden in child class if has any dependent objects.
in
Dto at line 35
array
GetReadOnlyProperties()
Get array with read only properties - not used in response To be overridden in child class if has any read-only properties.
__construct(int $page = 1, int $itemsPerPage = 10)
Construct