fromPaginationQueryParams() public static method

public static fromPaginationQueryParams ( array $paginationQueryParams, mixed $defaultOffset = null, mixed $defaultLimit = null )
$paginationQueryParams array
$defaultOffset mixed
$defaultLimit mixed
Exemplo n.º 1
0
 /**
  * @param mixed $defaultOffset
  * @param mixed $defaultLimit
  * @return \WoohooLabs\Yin\JsonApi\Request\Pagination\OffsetBasedPagination
  */
 public function getOffsetBasedPagination($defaultOffset = null, $defaultLimit = null)
 {
     return OffsetBasedPagination::fromPaginationQueryParams($this->getPagination(), $defaultOffset, $defaultLimit);
 }