PHP 클래스 Mongolid\Connection\Connection

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

공개 프로퍼티들

프로퍼티 타입 설명
$defaultDatabase string The default database where mongolid will store the documents.

보호된 프로퍼티들

프로퍼티 타입 설명
$rawConnection MongoDB\Client The raw MongoDB\Client object that represents this connection.
$rawManager MongoDB\Client The raw MongoDB\Manager object to perform bulk operations.

공개 메소드들

메소드 설명
__construct ( string $server = 'mongodb://localhost:27017', array $options = ['connect' => true], array $driver_options = [] ) Constructs a new Mongolid connection. It uses the same constructor parameters as the original MongoDB\Client constructor.
getRawConnection ( ) : MongoDB\Client Getter for Client instance.
getRawManager ( ) : MongoDB\Driver\Manager Getter for Manager instance.

보호된 메소드들

메소드 설명
findDefaultDatabase ( string $connectionString ) : void Find and stores the default database in the connection string.

메소드 상세

__construct() 공개 메소드

Constructs a new Mongolid connection. It uses the same constructor parameters as the original MongoDB\Client constructor.
또한 보기: http://php.net/manual/en/mongodb-driver-manager.construct.php
public __construct ( string $server = 'mongodb://localhost:27017', array $options = ['connect' => true], array $driver_options = [] )
$server string The specified connection string.
$options array The mongodb client options.
$driver_options array The mongodb driver options when opening a connection.

findDefaultDatabase() 보호된 메소드

Find and stores the default database in the connection string.
protected findDefaultDatabase ( string $connectionString ) : void
$connectionString string MongoDB connection string.
리턴 void

getRawConnection() 공개 메소드

Getter for Client instance.
public getRawConnection ( ) : MongoDB\Client
리턴 MongoDB\Client

getRawManager() 공개 메소드

Getter for Manager instance.
public getRawManager ( ) : MongoDB\Driver\Manager
리턴 MongoDB\Driver\Manager

프로퍼티 상세

$defaultDatabase 공개적으로 프로퍼티

The default database where mongolid will store the documents.
public string $defaultDatabase
리턴 string

$rawConnection 보호되어 있는 프로퍼티

The raw MongoDB\Client object that represents this connection.
protected Client,MongoDB $rawConnection
리턴 MongoDB\Client

$rawManager 보호되어 있는 프로퍼티

The raw MongoDB\Manager object to perform bulk operations.
protected Client,MongoDB $rawManager
리턴 MongoDB\Client