PHP 클래스 Mongolid\Cursor\CursorFactory

파일 보기 프로젝트 열기: leroy-merlin-br/mongolid 1 사용 예제들

공개 메소드들

메소드 설명
createCursor ( Schema $entitySchema, MongoDB\Collection $collection, string $command, array $params, boolean $cacheable = false ) : Cursor Creates a new instance of a non embedded Cursor.
createEmbeddedCursor ( string $entityClass, array $items ) : Mongolid\Cursor\CursorInterface Creates a new instance of EmbeddedCursor.

메소드 상세

createCursor() 공개 메소드

Creates a new instance of a non embedded Cursor.
public createCursor ( Schema $entitySchema, MongoDB\Collection $collection, string $command, array $params, boolean $cacheable = false ) : Cursor
$entitySchema Mongolid\Schema\Schema Schema that describes the entity that will be retrieved from the database.
$collection MongoDB\Collection The raw collection object that will be used to retrieve the documents.
$command string The command that is being called in the $collection.
$params array The parameters of the $command.
$cacheable boolean Retrieves a CacheableCursor instead.
리턴 Cursor

createEmbeddedCursor() 공개 메소드

Creates a new instance of EmbeddedCursor.
public createEmbeddedCursor ( string $entityClass, array $items ) : Mongolid\Cursor\CursorInterface
$entityClass string Class of the objects that will be retrieved by the cursor.
$items array The items array.
리턴 Mongolid\Cursor\CursorInterface