PHP 인터페이스 Xpressengine\Database\VirtualConnectionInterface

ConnectionInterface 를 따르며 DynamicField 처리를 위해 dynamic 메소드 추가
저자: XE Developers ([email protected])
상속: extends Illuminate\Database\ConnectionInterface
파일 보기 프로젝트 열기: xpressengine/xpressengine 0 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

dynamic() 공개 메소드

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
리턴 DynamicQuery

getConnection() 공개 메소드

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

getDefaultConnection() 공개 메소드

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

getProxyManager() 공개 메소드

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

getSchema() 공개 메소드

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

getSchemaBuilder() 공개 메소드

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

getTablePrefix() 공개 메소드

Get table prefix name.
public getTablePrefix ( ) : string
리턴 string

setSchemaCache() 공개 메소드

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