PHP 클래스 LMongo\DatabaseManager

상속: implements lmongo\ConnectionResolverInterface
파일 보기 프로젝트 열기: navruzm/lmongo

보호된 프로퍼티들

프로퍼티 타입 설명
$app Illuminate\Foundation\Application The application instance.
$connections array The active connection instances.
$extensions array The custom connection resolvers.

공개 메소드들

메소드 설명
__call ( string $method, array $parameters ) : mixed Dynamically pass methods to the default connection.
__construct ( Illuminate\Foundation\Application $app ) : void Create a new database manager instance.
connection ( string $name = null ) : LMongo\Connection Get a database connection instance.
extend ( string $name, callable $resolver ) : void Register an extension connection resolver.
getDefaultConnection ( ) : string Get the default connection name.
reconnect ( string $name = null ) : Connection Reconnect to the given database.
setDefaultConnection ( string $name ) : void Set the default connection name.

보호된 메소드들

메소드 설명
getConfig ( string $name ) : array Get the configuration for a connection.
makeConnection ( string $name ) : Connection Make the database connection instance.
prepare ( Connection $connection ) : Connection Prepare the database connection instance.

메소드 상세

__call() 공개 메소드

Dynamically pass methods to the default connection.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
리턴 mixed

__construct() 공개 메소드

Create a new database manager instance.
public __construct ( Illuminate\Foundation\Application $app ) : void
$app Illuminate\Foundation\Application
리턴 void

connection() 공개 메소드

Get a database connection instance.
public connection ( string $name = null ) : LMongo\Connection
$name string
리턴 LMongo\Connection

extend() 공개 메소드

Register an extension connection resolver.
public extend ( string $name, callable $resolver ) : void
$name string
$resolver callable
리턴 void

getConfig() 보호된 메소드

Get the configuration for a connection.
protected getConfig ( string $name ) : array
$name string
리턴 array

getDefaultConnection() 공개 메소드

Get the default connection name.
public getDefaultConnection ( ) : string
리턴 string

makeConnection() 보호된 메소드

Make the database connection instance.
protected makeConnection ( string $name ) : Connection
$name string
리턴 Connection

prepare() 보호된 메소드

Prepare the database connection instance.
protected prepare ( Connection $connection ) : Connection
$connection Connection
리턴 Connection

reconnect() 공개 메소드

Reconnect to the given database.
public reconnect ( string $name = null ) : Connection
$name string
리턴 Connection

setDefaultConnection() 공개 메소드

Set the default connection name.
public setDefaultConnection ( string $name ) : void
$name string
리턴 void

프로퍼티 상세

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

The application instance.
protected Application,Illuminate\Foundation $app
리턴 Illuminate\Foundation\Application

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

The active connection instances.
protected array $connections
리턴 array

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

The custom connection resolvers.
protected array $extensions
리턴 array