PHP Interface Xpressengine\Database\VirtualConnectionInterface

ConnectionInterface 를 따르며 DynamicField 처리를 위해 dynamic 메소드 추가
Author: XE Developers ([email protected])
Inheritance: extends Illuminate\Database\ConnectionInterface
Mostrar archivo Open project: xpressengine/xpressengine Interface Usage Examples

Public Methods

Method Description
dynamic ( string $table, array $options = [], boolean $proxy = true ) : DynamicQuery Begin a fluent query against a database table.
getConnection ( string $type ) : Illuminate\Database\ConnectionInterface get connection by $queryType.
getDefaultConnection ( ) : Connection get default connection
getProxyManager ( ) : ProxyManager get ProxyManager.
getSchema ( string $table ) : array return database table schema
getSchemaBuilder ( ) : Illuminate\Database\Schema\Builder Get a schema builder instance for the connection.
getTablePrefix ( ) : string Get table prefix name.
setSchemaCache ( string $table, boolean $force = false ) : boolean set database table schema

Method Details

dynamic() public method

Begin a fluent query against a database table.
public dynamic ( string $table, array $options = [], boolean $proxy = true ) : DynamicQuery
$table string table name
$options array use by proxy fire id
$proxy boolean use proxy
return DynamicQuery

getConnection() public method

'select' 쿼리일 경우 $slaveConnection 을 넘겨주고 그렇지 않을 경우 $masterConnection 을 반환. database 를 쿼리 실행 시 연결.
public getConnection ( string $type ) : Illuminate\Database\ConnectionInterface
$type string query type
return Illuminate\Database\ConnectionInterface

getDefaultConnection() public method

get default connection
public getDefaultConnection ( ) : Connection
return Illuminate\Database\Connection

getProxyManager() public method

DynamicQuery 에서 VirtualConnection 를 주입 받아 사용.
public getProxyManager ( ) : ProxyManager
return ProxyManager

getSchema() public method

return database table schema
public getSchema ( string $table ) : array
$table string table name
return array

getSchemaBuilder() public method

Get a schema builder instance for the connection.
public getSchemaBuilder ( ) : Illuminate\Database\Schema\Builder
return Illuminate\Database\Schema\Builder

getTablePrefix() public method

Get table prefix name.
public getTablePrefix ( ) : string
return string

setSchemaCache() public method

set database table schema
public setSchemaCache ( string $table, boolean $force = false ) : boolean
$table string table name
$force boolean force
return boolean