PHP 클래스 Shanty_Paginator_Adapter_Mongo

저자: Stefan Heckler
상속: implements Zend_Paginator_Adapter_Interface
파일 보기 프로젝트 열기: coen-hyde/shanty-mongo

보호된 프로퍼티들

프로퍼티 타입 설명
$_cursor Shanty_Mongo_Iterator_Cursor Cursor

공개 메소드들

메소드 설명
__construct ( Shanty_Mongo_Iterator_Cursor $cursor ) Constructor.
count ( ) : integer Returns the total number of rows in the cursor.
getItems ( integer $offset, integer $itemCountPerPage ) : Shanty_Mongo_Iterator_Cursor Returns an cursor limited to items for a page.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Shanty_Mongo_Iterator_Cursor $cursor )
$cursor Shanty_Mongo_Iterator_Cursor

count() 공개 메소드

Returns the total number of rows in the cursor.
public count ( ) : integer
리턴 integer

getItems() 공개 메소드

Returns an cursor limited to items for a page.
public getItems ( integer $offset, integer $itemCountPerPage ) : Shanty_Mongo_Iterator_Cursor
$offset integer Page offset
$itemCountPerPage integer Number of items per page
리턴 Shanty_Mongo_Iterator_Cursor

프로퍼티 상세

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

Cursor
protected Shanty_Mongo_Iterator_Cursor $_cursor
리턴 Shanty_Mongo_Iterator_Cursor