Свойство | Тип | Описание | |
---|---|---|---|
$links | array | The links array. |
Метод | Описание | |
---|---|---|
addLink ( string $key, string $value ) | Add a link. | |
addPaginationLinks ( string $url, array $queryParams, integer $offset, integer $limit, integer | null $total = null ) : void | Add pagination links (first, prev, next, and last). | |
getLinks ( ) : array | Get the links. | |
setLinks ( array $links ) | Set the links. |
Метод | Описание | |
---|---|---|
addPaginationLink ( string $name, string $url, array $queryParams, integer $offset, integer $limit ) : void | Add a pagination link. |
protected addPaginationLink ( string $name, string $url, array $queryParams, integer $offset, integer $limit ) : void | ||
$name | string | The name of the link. |
$url | string | The base URL for pagination links. |
$queryParams | array | The query params provided in the request. |
$offset | integer | The offset to link to. |
$limit | integer | The current limit. |
Результат | void |
public addPaginationLinks ( string $url, array $queryParams, integer $offset, integer $limit, integer | null $total = null ) : void | ||
$url | string | The base URL for pagination links. |
$queryParams | array | The query params provided in the request. |
$offset | integer | The current offset. |
$limit | integer | The current limit. |
$total | integer | null | The total number of results, or null if unknown. |
Результат | void |