PHP 클래스 Doctrine\ODM\MongoDB\CommandCursor

부터: 1.1
저자: alcaeus ([email protected])
상속: implements Doctrine\MongoDB\Iterator
파일 보기 프로젝트 열기: doctrine/mongodb-odm

공개 메소드들

메소드 설명
__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