Property | Type | Description | |
---|---|---|---|
$cache | Xpressengine\Support\CacheInterface | ||
$connectors | Xpressengine\Database\VirtualConnectionInterface[] | list of VirtualConnection | |
$databaseManager | Illuminate\Database\DatabaseManager | ||
$proxy | |||
$transaction |
Method | Description | |
---|---|---|
addConnector ( string $name, Xpressengine\Database\VirtualConnectionInterface $connector ) : Xpressengine\Database\VirtualConnectionInterface | add connector | |
connect ( null | string $connectionName = null ) : |
실제 처리 될 connection 을 생성해서 반환. | |
connectors ( ) : array | get list of VirtualConnection | |
databaseManager ( ) : Illuminate\Database\DatabaseManager | get DatabaseManager | |
destruct ( ) : void | destroy singleton instance test 를 위해서 singleton class destruct 를 실행 해야 할 일이 있는데. | |
getCache ( ) : Xpressengine\Support\CacheInterface | get cache | |
getConnector ( string $name = null ) : Xpressengine\Database\VirtualConnectionInterface | get VirtualConnection | |
getProxy ( ) : |
get ProxyManager | |
getTransaction ( ) : |
get TransactionHandler | |
instance ( Illuminate\Database\DatabaseManager $databaseManager, |
create instance if not exists |
Method | Description | |
---|---|---|
__clone ( ) : void | not able clone | |
__construct ( Illuminate\Database\DatabaseManager $databaseManager, |
singleton |
public addConnector ( string $name, Xpressengine\Database\VirtualConnectionInterface $connector ) : Xpressengine\Database\VirtualConnectionInterface | ||
$name | string | config/xe.php database connector name |
$connector | Xpressengine\Database\VirtualConnectionInterface | connector |
return | Xpressengine\Database\VirtualConnectionInterface |
public databaseManager ( ) : Illuminate\Database\DatabaseManager | ||
return | Illuminate\Database\DatabaseManager |
public getCache ( ) : Xpressengine\Support\CacheInterface | ||
return | Xpressengine\Support\CacheInterface |
public getConnector ( string $name = null ) : Xpressengine\Database\VirtualConnectionInterface | ||
$name | string | config/xe.php database connector name |
return | Xpressengine\Database\VirtualConnectionInterface |
public getTransaction ( ) : |
||
return |
public static instance ( Illuminate\Database\DatabaseManager $databaseManager, |
||
$databaseManager | Illuminate\Database\DatabaseManager | database manager |
$transaction | transaction handler | |
$proxy | proxy manager | |
$cache | Xpressengine\Support\CacheInterface | cache |
return |
protected CacheInterface,Xpressengine\Support $cache | ||
return | Xpressengine\Support\CacheInterface |
protected VirtualConnectionInterface[],Xpressengine\Database $connectors | ||
return | Xpressengine\Database\VirtualConnectionInterface[] |
protected DatabaseManager,Illuminate\Database $databaseManager | ||
return | Illuminate\Database\DatabaseManager |