PHP Interface Xpressengine\Database\ProxyInterface

* DynamicQuery 에서 first, get, insert, update, delete 처리 시 ProxyManager 에 등록된 Proxy 처리 * ProxyManager 에 등록하기 위한 interface
See also: Xpressengine\DynamicField\DynamicField
Author: XE Team (developers) ([email protected])
Mostrar archivo Open project: xpressengine/xpressengine

Public Methods

Method Description
delete ( array $wheres ) : void delete
first ( DynamicQuery $query ) : DynamicQuery DynamicQuery 에서 first() method 실행 시 join 처리
get ( DynamicQuery $query ) : DynamicQuery DynamicQuery 에서 get() method 실행 시 join 처리 리스트 가져올 때 join 처리.
insert ( array $args ) : void insert
orders ( DynamicQuery $query, array $orders ) : DynamicQuery 등록된 모든 proxy의 orders()를 처리함.
set ( VirtualConnectionInterface $connection, array $options ) : void set connection
update ( array $args, array $wheres ) : void update
wheres ( DynamicQuery $query, array $wheres ) : Builder 등록된 모든 proxy 의 wheres()를 처리함.

Method Details

delete() public method

delete
See also: QueryBuilder::delete()
public delete ( array $wheres ) : void
$wheres array \Illuminate\Database\Query\Builder's wheres attribute
return void

first() public method

DynamicQuery 에서 first() method 실행 시 join 처리
See also: QueryBuilder::first()
public first ( DynamicQuery $query ) : DynamicQuery
$query DynamicQuery query builder
return DynamicQuery

get() public method

하나의 row 를 처리할 때 join 이 다를 수 있기때문에 joinFirst()로 두가지 제공.
See also: QueryBuilder::et()
public get ( DynamicQuery $query ) : DynamicQuery
$query DynamicQuery query builder
return DynamicQuery

insert() public method

insert
See also: QueryBuilde::insert()
public insert ( array $args ) : void
$args array parameters
return void

orders() public method

등록된 모든 proxy의 orders()를 처리함.
public orders ( DynamicQuery $query, array $orders ) : DynamicQuery
$query DynamicQuery query builder
$orders array parameters for order
return DynamicQuery

set() public method

set connection
public set ( VirtualConnectionInterface $connection, array $options ) : void
$connection VirtualConnectionInterface connection
$options array table name
return void

update() public method

update
See also: QueryBuilde::update()
public update ( array $args, array $wheres ) : void
$args array parameters
$wheres array \Illuminate\Database\Query\Builder's wheres attribute
return void

wheres() public method

등록된 모든 proxy 의 wheres()를 처리함.
public wheres ( DynamicQuery $query, array $wheres ) : Builder
$query DynamicQuery query builder
$wheres array parameters for where
return Illuminate\Database\Query\Builder