PHP Класс Doctrine\ODM\MongoDB\CommandCursor

С версии: 1.1
Автор: alcaeus ([email protected])
Наследование: implements Doctrine\MongoDB\Iterator
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Doctrine\MongoDB\CommandCursor $commandCursor, UnitOfWork $unitOfWork, ClassMetadata $class = null )
batchSize ( integer $num ) : self Wrapper method for MongoCommandCursor::batchSize().
count ( ) : integer Recreates the command cursor and counts its results.
current ( ) : object | array | null Wrapper method for MongoCommandCursor::current().
dead ( ) : boolean Wrapper method for MongoCommandCursor::dead().
getBaseCursor ( ) : Doctrine\MongoDB\CommandCursor Returns the MongoCommandCursor instance being wrapped.
getSingleResult ( ) : object | array | null Rewinds the cursor and returns its first result.
info ( ) : array Wrapper method for MongoCommandCursor::info().
key ( ) : integer Wrapper method for MongoCommandCursor::key().
next ( ) Wrapper method for MongoCommandCursor::next().
rewind ( ) : array Wrapper method for MongoCommandCursor::rewind().
timeout ( integer $ms ) : self Wrapper method for MongoCommandCursor::timeout().
toArray ( ) : array Return the cursor's results as an array.
valid ( ) : boolean Wrapper method for MongoCommandCursor::valid().

Приватные методы

Метод Описание
hydrateDocument ( array $document ) : array | object | null

Описание методов

__construct() публичный Метод

public __construct ( Doctrine\MongoDB\CommandCursor $commandCursor, UnitOfWork $unitOfWork, ClassMetadata $class = null )
$commandCursor Doctrine\MongoDB\CommandCursor The ComamndCursor instance being wrapped
$unitOfWork UnitOfWork
$class Doctrine\ODM\MongoDB\Mapping\ClassMetadata The class to use for hydration or null if results should not be hydrated

batchSize() публичный Метод

Wrapper method for MongoCommandCursor::batchSize().
См. также: http://php.net/manual/en/mongocommandcursor.batchsize.php
public batchSize ( integer $num ) : self
$num integer
Результат self

count() публичный Метод

Recreates the command cursor and counts its results.
См. также: http://php.net/manual/en/countable.count.php
public count ( ) : integer
Результат integer

current() публичный Метод

Wrapper method for MongoCommandCursor::current().
См. также: http://php.net/manual/en/iterator.current.php
См. также: http://php.net/manual/en/mongocommandcursor.current.php
public current ( ) : object | array | null
Результат object | array | null

dead() публичный Метод

Wrapper method for MongoCommandCursor::dead().
См. также: http://php.net/manual/en/mongocommandcursor.dead.php
public dead ( ) : boolean
Результат boolean

getBaseCursor() публичный Метод

Returns the MongoCommandCursor instance being wrapped.
public getBaseCursor ( ) : Doctrine\MongoDB\CommandCursor
Результат Doctrine\MongoDB\CommandCursor

getSingleResult() публичный Метод

Rewinds the cursor and returns its first result.
См. также: Iterator::getSingleResult()
public getSingleResult ( ) : object | array | null
Результат object | array | null

info() публичный Метод

Wrapper method for MongoCommandCursor::info().
См. также: http://php.net/manual/en/mongocommandcursor.info.php
public info ( ) : array
Результат array

key() публичный Метод

Wrapper method for MongoCommandCursor::key().
См. также: http://php.net/manual/en/iterator.key.php
См. также: http://php.net/manual/en/mongocommandcursor.key.php
public key ( ) : integer
Результат integer

next() публичный Метод

Wrapper method for MongoCommandCursor::next().
См. также: http://php.net/manual/en/iterator.next.php
См. также: http://php.net/manual/en/mongocommandcursor.next.php
public next ( )

rewind() публичный Метод

Wrapper method for MongoCommandCursor::rewind().
См. также: http://php.net/manual/en/iterator.rewind.php
См. также: http://php.net/manual/en/mongocommandcursor.rewind.php
public rewind ( ) : array
Результат array

timeout() публичный Метод

Wrapper method for MongoCommandCursor::timeout().
См. также: http://php.net/manual/en/mongocommandcursor.timeout.php
public timeout ( integer $ms ) : self
$ms integer
Результат self

toArray() публичный Метод

Return the cursor's results as an array.
См. также: Iterator::toArray()
public toArray ( ) : array
Результат array

valid() публичный Метод

Wrapper method for MongoCommandCursor::valid().
См. также: http://php.net/manual/en/iterator.valid.php
См. также: http://php.net/manual/en/mongocommandcursor.valid.php
public valid ( ) : boolean
Результат boolean