PHP 클래스 LMongo\Connection

파일 보기 프로젝트 열기: navruzm/lmongo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Illuminate\Cache\CacheManger The cache manager instance.
$config array The database connection configuration options.
$connection resource The MongoClient connection handler.
$db resource The MongoDB database handler.
$events Illuminate\Events\Dispatcher The event dispatcher instance.
$paginator Illuminate\Pagination\Paginator The paginator environment instance.

공개 메소드들

메소드 설명
__get ( string $name ) : MongoCollection Dynamically pass collection name to MongoCollection and return it.
collection ( string $collection ) : Builder Return new Query Builder instance
connect ( array $config ) : LMongo\Connection Establish a database connection.
getCacheManager ( ) : Illuminate\Cache\CacheManager Get the cache manager instance.
getConfig ( string $option ) : mixed Get an option from the configuration options.
getEventDispatcher ( ) : Illuminate\Events\Dispatcher Get the event dispatcher used by the connection.
getMongoClient ( ) : MongoClient return MongoClient object
getMongoDB ( ) : MongoDB return MongoDB object
getName ( ) : string | null Get the database connection name.
getPaginator ( ) : Illuminate\Pagination\Environment Get the paginator environment instance.
setCacheManager ( Illuminate\Cache\CacheManager | Closure $cache ) : void Set the cache manager instance on the connection.
setEventDispatcher ( Illuminate\Events\Dispatcher $events ) : void Set the event dispatcher instance on the connection.
setPaginator ( Illuminate\Pagination\Environment | Closure $paginator ) : void Set the pagination environment instance.

보호된 메소드들

메소드 설명
getDsn ( array $config ) : string Create a DSN string from a configuration.

메소드 상세

__get() 공개 메소드

Dynamically pass collection name to MongoCollection and return it.
public __get ( string $name ) : MongoCollection
$name string
리턴 MongoCollection

collection() 공개 메소드

Return new Query Builder instance
public collection ( string $collection ) : Builder
$collection string
리턴 LMongo\Query\Builder

connect() 공개 메소드

Establish a database connection.
public connect ( array $config ) : LMongo\Connection
$config array
리턴 LMongo\Connection

getCacheManager() 공개 메소드

Get the cache manager instance.
public getCacheManager ( ) : Illuminate\Cache\CacheManager
리턴 Illuminate\Cache\CacheManager

getConfig() 공개 메소드

Get an option from the configuration options.
public getConfig ( string $option ) : mixed
$option string
리턴 mixed

getDsn() 보호된 메소드

Create a DSN string from a configuration.
protected getDsn ( array $config ) : string
$config array
리턴 string

getEventDispatcher() 공개 메소드

Get the event dispatcher used by the connection.
public getEventDispatcher ( ) : Illuminate\Events\Dispatcher
리턴 Illuminate\Events\Dispatcher

getMongoClient() 공개 메소드

return MongoClient object
public getMongoClient ( ) : MongoClient
리턴 MongoClient

getMongoDB() 공개 메소드

return MongoDB object
public getMongoDB ( ) : MongoDB
리턴 MongoDB

getName() 공개 메소드

Get the database connection name.
public getName ( ) : string | null
리턴 string | null

getPaginator() 공개 메소드

Get the paginator environment instance.
public getPaginator ( ) : Illuminate\Pagination\Environment
리턴 Illuminate\Pagination\Environment

setCacheManager() 공개 메소드

Set the cache manager instance on the connection.
public setCacheManager ( Illuminate\Cache\CacheManager | Closure $cache ) : void
$cache Illuminate\Cache\CacheManager | Closure
리턴 void

setEventDispatcher() 공개 메소드

Set the event dispatcher instance on the connection.
public setEventDispatcher ( Illuminate\Events\Dispatcher $events ) : void
$events Illuminate\Events\Dispatcher
리턴 void

setPaginator() 공개 메소드

Set the pagination environment instance.
public setPaginator ( Illuminate\Pagination\Environment | Closure $paginator ) : void
$paginator Illuminate\Pagination\Environment | Closure
리턴 void

프로퍼티 상세

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

The cache manager instance.
protected CacheManger,Illuminate\Cache $cache
리턴 Illuminate\Cache\CacheManger

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

The database connection configuration options.
protected array $config
리턴 array

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

The MongoClient connection handler.
protected resource $connection
리턴 resource

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

The MongoDB database handler.
protected resource $db
리턴 resource

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

The event dispatcher instance.
protected Illuminate\Events\Dispatcher $events
리턴 Illuminate\Events\Dispatcher

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

The paginator environment instance.
protected Illuminate\Pagination\Paginator $paginator
리턴 Illuminate\Pagination\Paginator