PHP Class Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoLegacyIterator

This iterator may be used to wrap a Cursor returned for queries on the "system.namespaces" collection. It includes logic to filter out internal collections and modify the collection name to be consistent with results from the listCollections command.
See also: MongoDB\Database::listCollections()
See also: https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
See also: http://docs.mongodb.org/manual/reference/command/listCollections/
See also: http://docs.mongodb.org/manual/reference/system-collections/
Inheritance: extends FilterIterato\FilterIterator, implements Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoIterator
Afficher le fichier Open project: phalcon/incubator

Méthodes publiques

Méthode Description
__construct ( Traversable $iterator ) Constructor.
accept ( ) : boolean Filter out internal or invalid collections.
current ( ) : CollectionInfo Return the current element as a CollectionInfo instance.

Method Details

__construct() public méthode

Constructor.
public __construct ( Traversable $iterator )
$iterator Traversable

accept() public méthode

Filter out internal or invalid collections.
See also: http://php.net/filteriterator.accept
public accept ( ) : boolean
Résultat boolean

current() public méthode

Return the current element as a CollectionInfo instance.
See also: CollectionInfoIterator::current()
See also: http://php.net/iterator.current
public current ( ) : CollectionInfo
Résultat CollectionInfo