PHP 클래스 Phalcon\Paginator\Pager

상속: implements IteratorAggregate, implements Countable
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$limit integer | null Current rows limit (if provided)
$options array Array with options.
$paginateResult stdClass Phalcon's paginate result.

공개 메소드들

메소드 설명
__construct ( Phalcon\Paginator\AdapterInterface $adapter, array $options = [] ) Class constructor.
count ( ) : integer
getCurrentPage ( ) : integer Returns the current page.
getFirstPage ( ) : integer Returns the first page.
getIterator ( ) : ArrayIterator
getLastPage ( ) : integer Returns the last page.
getLayout ( ) : Layout Returns the layout object.
getLimit ( ) : integer | null Get current rows limit (if provided)
getNextPage ( ) : integer Returns the next page.
getPagesInRange ( ) : array Returns array of page numbers that are in range of slider.
getPreviousPage ( ) : integer Returns the previous page.
haveToPaginate ( ) : boolean Return true if it's necessary to paginate or false if not.

보호된 메소드들

메소드 설명
getRangeClass ( ) : string RangeClass option getter.
getRangeLength ( ) : integer RangeLength option getter.

메소드 상세

__construct() 공개 메소드

Consumes Phalcon paginator adapter and options array. Option keys: - rangeClass: Class name which determines scrolling style type (e.g. Phalcon\Paginator\Pager\Range\Sliding). Defaults to "Phalcon\Paginator\Pager\Range\Sliding". - rangeLength: Size of range to be used. Default size is 10. - layoutClass: Used with getLayout() method. Defaults to "Phalcon\Paginator\Pager\Layout". - urlMask: Required with getLayout() method.
public __construct ( Phalcon\Paginator\AdapterInterface $adapter, array $options = [] )
$adapter Phalcon\Paginator\AdapterInterface Phalcon paginator adapter
$options array options array

count() 공개 메소드

public count ( ) : integer
리턴 integer

getCurrentPage() 공개 메소드

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

getFirstPage() 공개 메소드

Returns the first page.
public getFirstPage ( ) : integer
리턴 integer

getIterator() 공개 메소드

getLastPage() 공개 메소드

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

getLayout() 공개 메소드

Returns the layout object.
public getLayout ( ) : Layout
리턴 Phalcon\Paginator\Pager\Layout

getLimit() 공개 메소드

Get current rows limit (if provided)
public getLimit ( ) : integer | null
리턴 integer | null

getNextPage() 공개 메소드

Returns the next page.
public getNextPage ( ) : integer
리턴 integer

getPagesInRange() 공개 메소드

Returns array of page numbers that are in range of slider.
public getPagesInRange ( ) : array
리턴 array array of page numbers

getPreviousPage() 공개 메소드

Returns the previous page.
public getPreviousPage ( ) : integer
리턴 integer

getRangeClass() 보호된 메소드

RangeClass option getter.
protected getRangeClass ( ) : string
리턴 string range class name

getRangeLength() 보호된 메소드

RangeLength option getter.
protected getRangeLength ( ) : integer
리턴 integer range length

haveToPaginate() 공개 메소드

Return true if it's necessary to paginate or false if not.
public haveToPaginate ( ) : boolean
리턴 boolean

프로퍼티 상세

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

Current rows limit (if provided)
protected int|null $limit
리턴 integer | null

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

Array with options.
protected array $options
리턴 array

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

Phalcon's paginate result.
protected stdClass $paginateResult
리턴 stdClass