PHP Class Xpressengine\Database\ProxyManager

* DynamicQuery 에서 first, get, insert, update, delete 처리 시 ProxyManager 에 등록된 Proxy 처리 - DynamicField package 를 Proxy interface 를 이용해서 지원 * VirtualConnectionInterface 의 dynamic() 메서드를 통해 획득한 DynamicQuery 에서 proxy 를 사용할 수 있음 * DynamicQuery 의 setProxy(true)->setProxyOption() 로 proxy 를 지원하도록 설정 할 수 있음
See also: Xpressengine\DynamicField\DatabaseProxy
Author: XE Developers ([email protected])
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Свойство Type Description
$conn Xpressengine\Database\VirtualConnectionInterface
$container Xpressengine\Register\Container
$options array

Méthodes publiques

Méthode Description
delete ( array $wheres ) : void delete
destruct ( ) : void destroy singleton instance
first ( Builder $query ) : Builder 등록된 모든 proxy의 first()를 처리함.
get ( Builder $query ) : Builder 등록된 모든 proxy 의 get() interface 처리
getProxy ( string $name ) : Xpressengine\Database\ProxyInterface get registered proxy
gets ( ) : array get registered proxies
insert ( array $args ) : void insert
instance ( Container $container ) : object create instance if not exists
orders ( Builder $query, array $orders ) : Builder 등록된 모든 proxy의 orders()를 처리함.
register ( Xpressengine\Database\ProxyInterface $proxy ) : void register proxy
set ( Xpressengine\Database\VirtualConnectionInterface $conn, array $options ) : void set connection 등록된 proxy 로 connection 을 주입하기 위해 connection 정보를 가짐 DynamicQuery 에서 주입 받음
update ( array $args, array $wheres = null ) : void update
wheres ( Builder $query, array $wheres ) : Builder 등록된 모든 proxy의 wheres()를 처리함.

Private Methods

Méthode Description
__clone ( ) : void not able clone
__construct ( Container $container ) singleton

Method Details

delete() public méthode

delete
public delete ( array $wheres ) : void
$wheres array \Illuminate\Database\Query\Builder's wheres attribute
Résultat void

destruct() public static méthode

destroy singleton instance
public static destruct ( ) : void
Résultat void

first() public méthode

등록된 모든 proxy의 first()를 처리함.
public first ( Builder $query ) : Builder
$query Illuminate\Database\Query\Builder query builder
Résultat Illuminate\Database\Query\Builder

get() public méthode

등록된 모든 proxy 의 get() interface 처리
public get ( Builder $query ) : Builder
$query Illuminate\Database\Query\Builder query builder
Résultat Illuminate\Database\Query\Builder

getProxy() public méthode

get registered proxy
public getProxy ( string $name ) : Xpressengine\Database\ProxyInterface
$name string proxy name
Résultat Xpressengine\Database\ProxyInterface

gets() public méthode

get registered proxies
public gets ( ) : array
Résultat array

insert() public méthode

insert
public insert ( array $args ) : void
$args array parameters
Résultat void

instance() public static méthode

create instance if not exists
public static instance ( Container $container ) : object
$container Xpressengine\Register\Container register's container
Résultat object

orders() public méthode

등록된 모든 proxy의 orders()를 처리함.
public orders ( Builder $query, array $orders ) : Builder
$query Illuminate\Database\Query\Builder query builder
$orders array parameters for order
Résultat Illuminate\Database\Query\Builder

register() public méthode

register proxy
public register ( Xpressengine\Database\ProxyInterface $proxy ) : void
$proxy Xpressengine\Database\ProxyInterface proxy instance
Résultat void

set() public méthode

set connection 등록된 proxy 로 connection 을 주입하기 위해 connection 정보를 가짐 DynamicQuery 에서 주입 받음
public set ( Xpressengine\Database\VirtualConnectionInterface $conn, array $options ) : void
$conn Xpressengine\Database\VirtualConnectionInterface connection
$options array options
Résultat void

update() public méthode

update
public update ( array $args, array $wheres = null ) : void
$args array parameters
$wheres array \Illuminate\Database\Query\Builder's wheres attribute
Résultat void

wheres() public méthode

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

Property Details

$conn protected_oe property

protected VirtualConnectionInterface,Xpressengine\Database $conn
Résultat Xpressengine\Database\VirtualConnectionInterface

$container protected_oe property

protected Container,Xpressengine\Register $container
Résultat Xpressengine\Register\Container

$options protected_oe property

protected array $options
Résultat array