PHP Class Shanty_Mongo_Iterator_Cursor

Author: Coen Hyde
Inheritance: implements OuterIterator
Show file Open project: coen-hyde/shanty-mongo Class Usage Examples

Protected Properties

Property Type Description
$_config
$_cursor

Public Methods

Method Description
__call ( $method, $arguments )
__construct ( MongoCursor $cursor, $config )
count ( $all = false )
current ( ) : mixed Get the current value
export ( ) : array Export all data
getDocumentClass ( ) : string Get the document class
getDocumentSetClass ( ) : string Get the document set class
getInnerIterator ( ) : MongoCursor Get the inter iterator
getNext ( )
info ( )
key ( )
makeDocumentSet ( ) : Shanty_Mongo_DocumentSet Construct a document set from this cursor
next ( )
rewind ( )
valid ( )

Method Details

__call() public method

public __call ( $method, $arguments )

__construct() public method

public __construct ( MongoCursor $cursor, $config )
$cursor MongoCursor

count() public method

public count ( $all = false )

current() public method

Get the current value
public current ( ) : mixed
return mixed

export() public method

Export all data
public export ( ) : array
return array

getDocumentClass() public method

Get the document class
public getDocumentClass ( ) : string
return string

getDocumentSetClass() public method

Get the document set class
public getDocumentSetClass ( ) : string
return string

getInnerIterator() public method

Get the inter iterator
public getInnerIterator ( ) : MongoCursor
return MongoCursor

getNext() public method

public getNext ( )

info() public method

public info ( )

key() public method

public key ( )

makeDocumentSet() public method

Construct a document set from this cursor
public makeDocumentSet ( ) : Shanty_Mongo_DocumentSet
return Shanty_Mongo_DocumentSet

next() public method

public next ( )

rewind() public method

public rewind ( )

valid() public method

public valid ( )

Property Details

$_config protected property

protected $_config

$_cursor protected property

protected $_cursor