PHP Trait WoohooLabs\Yin\JsonApi\Schema\Pagination\PageBasedPaginationLinkProviderTrait

显示文件 Open project: woohoolabs/yin

Public Methods

Method Description
getFirstLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getLastLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getNextLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getPage ( ) : integer
getPrevLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getSelfLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getSize ( ) : integer
getTotalItems ( ) : integer

Protected Methods

Method Description
appendQueryStringToUrl ( string $url, string $queryString ) : string
createPaginatedLink ( string $url, integer $page, integer $size ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getLastPage ( ) : float

Method Details

appendQueryStringToUrl() protected method

protected appendQueryStringToUrl ( string $url, string $queryString ) : string
$url string
$queryString string
return string

getLastPage() protected method

protected getLastPage ( ) : float
return float

getPage() abstract public method

abstract public getPage ( ) : integer
return integer

getSize() abstract public method

abstract public getSize ( ) : integer
return integer

getTotalItems() abstract public method

abstract public getTotalItems ( ) : integer
return integer