Свойство | Type | Description | |
---|---|---|---|
$currentOffset | integer | The current entry offset number. | |
$currentPage | integer | The current page number. | |
$pages | integer | The total amount of pages. | |
$perPage | integer | The amount of entries per page. | |
$results | array | The complete results array. |
Méthode | Description | |
---|---|---|
__construct ( array $results = [], integer $perPage = 50, integer $currentPage, integer $pages ) | Constructor. | |
count ( ) : integer | Returns the total amount of results. | |
getCurrentOffset ( ) : integer | Returns the current offset number. | |
getCurrentPage ( ) : integer | Returns the current page number. | |
getIterator ( ) : ArrayIterator | Get an iterator for the entries. | |
getPages ( ) : integer | Returns the total amount of pages in a paginated result. | |
getPerPage ( ) : integer | Returns the total amount of entries allowed per page. | |
getResults ( ) : array | Returns the complete results array. |
Méthode | Description | |
---|---|---|
setCurrentOffset ( integer $offset ) : |
Sets the current offset number. | |
setCurrentPage ( integer $currentPage ) : |
Sets the current page number. | |
setPages ( integer $pages ) : |
Sets the total number of pages. | |
setPerPage ( integer $perPage = 50 ) : |
Sets the number of entries per page. | |
setResults ( array $results ) : |
Sets the results array property. |
public getCurrentOffset ( ) : integer | ||
Résultat | integer |
public getCurrentPage ( ) : integer | ||
Résultat | integer |
public getIterator ( ) : ArrayIterator | ||
Résultat | ArrayIterator |
public getPerPage ( ) : integer | ||
Résultat | integer |
public getResults ( ) : array | ||
Résultat | array |
protected setCurrentOffset ( integer $offset ) : |
||
$offset | integer | |
Résultat |
protected setCurrentPage ( integer $currentPage ) : |
||
$currentPage | integer | |
Résultat |
protected setPerPage ( integer $perPage = 50 ) : |
||
$perPage | integer | |
Résultat |
protected setResults ( array $results ) : |
||
$results | array | |
Résultat |
protected int $currentOffset | ||
Résultat | integer |
protected int $currentPage | ||
Résultat | integer |
protected int $perPage | ||
Résultat | integer |