PHP Class Xpressengine\DynamicField\DatabaseProxy

* DynamicField 는 XE Database 패키지의 Proxy 기능으로 구현됨 * 이 클래스 인스턴스를 XE Database ProxyManager 에 등록 함
Author: XE Developers ([email protected])
Inheritance: implements Xpressengine\Database\ProxyInterface
ファイルを表示 Open project: xpressengine/xpressengine

Protected Properties

Property Type Description
$group string dynamic field group name
$handler DynamicFieldHandler
$options array Database proxy manager options
$revision boolean

Public Methods

Method Description
__construct ( DynamicFieldHandler $handler ) create instance
delete ( array $wheres = null ) : void DynamicField 데이터 삭제
first ( DynamicQuery $query ) : DynamicQuery Builder 에서 first()메소드 실행 시 join 처리
get ( DynamicQuery $query ) : DynamicQuery Builder 에서 get()메소드 실행 시 join 처리
insert ( array $args ) : void dynamic field 데이터 등록
orders ( DynamicQuery $query, array $orders ) : DynamicQuery DynamicQuery 에서 ProxyManager 를 통해 실행 DynamicField 의 order 처리
set ( Xpressengine\Database\VirtualConnectionInterface $conn, array $options ) : void set database connection and options Dynamic field 는 'id', 'group' 옵션을 갖는다.
update ( array $args, array $wheres = [] ) : void DynamicField 데이터 수정
wheres ( DynamicQuery $query, array $wheres ) : DynamicQuery DynamicQuery 에서 ProxyManager 를 통해 실행 DynamicField 의 where 처리

Private Methods

Method Description
getConfigs ( ) : array get configs
getType ( string $id ) : AbstractType get dynamic field type
isTableMethodCreate ( ConfigEntity $config ) : boolean 테이블 생성 방식인지 확인

Method Details

__construct() public method

create instance
public __construct ( DynamicFieldHandler $handler )
$handler DynamicFieldHandler dynamic field handler

delete() public method

DynamicField 데이터 삭제
public delete ( array $wheres = null ) : void
$wheres array Illuminate\Database\Query\Builder's wheres attribute
return void

first() public method

Builder 에서 first()메소드 실행 시 join 처리
public first ( DynamicQuery $query ) : DynamicQuery
$query Xpressengine\Database\DynamicQuery query builder
return Xpressengine\Database\DynamicQuery

get() public method

Builder 에서 get()메소드 실행 시 join 처리
public get ( DynamicQuery $query ) : DynamicQuery
$query Xpressengine\Database\DynamicQuery query builder
return Xpressengine\Database\DynamicQuery

insert() public method

dynamic field 데이터 등록
public insert ( array $args ) : void
$args array insert data parameters
return void

orders() public method

DynamicQuery 에서 ProxyManager 를 통해 실행 DynamicField 의 order 처리
public orders ( DynamicQuery $query, array $orders ) : DynamicQuery
$query Xpressengine\Database\DynamicQuery query builder
$orders array parameters for where
return Xpressengine\Database\DynamicQuery

set() public method

'id' 는 instance id 와 같이 테이블 기준이 아니라 인스턴스 기준으로 DynamicField 를 사용해야할 때 설정한다.(예: document, comment) 'group' 은 별도의 명칭을 만들어 사용하고자 할 경우 설정
public set ( Xpressengine\Database\VirtualConnectionInterface $conn, array $options ) : void
$conn Xpressengine\Database\VirtualConnectionInterface database connection
$options array options
return void

update() public method

DynamicField 데이터 수정
public update ( array $args, array $wheres = [] ) : void
$args array update data parameters
$wheres array Illuminate\Database\Query\Builder's wheres attribute
return void

wheres() public method

DynamicQuery 에서 ProxyManager 를 통해 실행 DynamicField 의 where 처리
public wheres ( DynamicQuery $query, array $wheres ) : DynamicQuery
$query Xpressengine\Database\DynamicQuery query builder
$wheres array parameters for where
return Xpressengine\Database\DynamicQuery

Property Details

$group protected_oe property

dynamic field group name
protected string $group
return string

$handler protected_oe property

protected DynamicFieldHandler,Xpressengine\DynamicField $handler
return DynamicFieldHandler

$options protected_oe property

Database proxy manager options
protected array $options
return array

$revision protected_oe property

protected bool $revision
return boolean