PHP 클래스 Craft\ElementApi_PaginatorAdapter

상속: implements League\Fractal\Pagination\PaginatorInterface
파일 보기 프로젝트 열기: pixelandtonic/ElementAPI 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$count integer
$currentPage integer
$elementsPerPage integer
$pageParam string
$totalElements integer
$totalPages integer

공개 메소드들

메소드 설명
__construct ( integer $elementsPerPage, integer $totalElements, $pageParam ) Constructor
getCount ( ) : integer Get the count.
getCurrentPage ( ) : integer Get the current page.
getLastPage ( ) : integer Get the last page.
getPerPage ( ) : integer Get the number per page.
getTotal ( ) : integer Get the total.
getUrl ( integer $page ) : string Get the url for the given page.
setCount ( integer $count ) Sets the count.

비공개 메소드들

메소드 설명
_getCurrentPage ( ) : integer Determines the current page.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( integer $elementsPerPage, integer $totalElements, $pageParam )
$elementsPerPage integer
$totalElements integer

getCount() 공개 메소드

Get the count.
public getCount ( ) : integer
리턴 integer

getCurrentPage() 공개 메소드

Get the current page.
public getCurrentPage ( ) : integer
리턴 integer

getLastPage() 공개 메소드

Get the last page.
public getLastPage ( ) : integer
리턴 integer

getPerPage() 공개 메소드

Get the number per page.
public getPerPage ( ) : integer
리턴 integer

getTotal() 공개 메소드

Get the total.
public getTotal ( ) : integer
리턴 integer

getUrl() 공개 메소드

Get the url for the given page.
public getUrl ( integer $page ) : string
$page integer
리턴 string

setCount() 공개 메소드

Sets the count.
public setCount ( integer $count )
$count integer

프로퍼티 상세

$count 보호되어 있는 프로퍼티

protected int $count
리턴 integer

$currentPage 보호되어 있는 프로퍼티

protected int $currentPage
리턴 integer

$elementsPerPage 보호되어 있는 프로퍼티

protected int $elementsPerPage
리턴 integer

$pageParam 보호되어 있는 프로퍼티

protected string $pageParam
리턴 string

$totalElements 보호되어 있는 프로퍼티

protected int $totalElements
리턴 integer

$totalPages 보호되어 있는 프로퍼티

protected int $totalPages
리턴 integer