PHP Class Shanty_Paginator_Adapter_Mongo

Author: Stefan Heckler
Inheritance: implements Zend_Paginator_Adapter_Interface
显示文件 Open project: coen-hyde/shanty-mongo

Protected Properties

Property Type Description
$_cursor Shanty_Mongo_Iterator_Cursor Cursor

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

count() public method

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

getItems() public method

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
return Shanty_Mongo_Iterator_Cursor

Property Details

$_cursor protected_oe property

Cursor
protected Shanty_Mongo_Iterator_Cursor $_cursor
return Shanty_Mongo_Iterator_Cursor