Свойство | Type | Description | |
---|---|---|---|
$configHandler | |||
$conn | Xpressengine\Database\VirtualConnectionInterface | ||
$instanceManager | |||
$model | model class | ||
$request | Illuminate\Http\Request | ||
$revisionModel | model class |
Méthode | Description | |
---|---|---|
__construct ( Xpressengine\Database\VirtualConnectionInterface $conn, |
||
add ( array $attributes ) : |
add document | |
addRevision ( |
add revision | |
createInstance ( string $instanceId, array $params = [] ) : |
create document instance | |
destroyInstance ( string $instanceId, integer $chunk = 100 ) : void | destroy document instance | |
get ( string $id, string $instanceId = null ) : |
get document | |
getConfig ( string $instanceId ) : |
get document config | |
getConfigHandler ( ) : |
get config handler | |
getDivisionTableName ( |
get division table name | |
getInstanceManager ( ) : |
get repository | |
getModel ( string $instanceId = null ) : |
Proxy, Division 관련 설정이 된 Document model 반환 Document 는 config 를 설정해야 정상 사용 가능함 document model 를 직접 반환하지 않음 | |
proxyOption ( |
get database proxy options | |
put ( |
update document | |
remove ( |
delete document | |
setModelConfig ( |
set model's config |
Méthode | Description | |
---|---|---|
getRevisionModel ( ) : |
get revision model | |
newModel ( ) : |
create document model config 없이 모델을 직접 생성할 경우 문제가 발생하므로 접근을 제한함 | |
newRevisionModel ( array $attributes = [] ) : |
create revision model | |
removeDivision ( |
인스턴스 아이디가 변경된 경우 이전 인스턴스의 디비전 테이블 데이터 삭제 |
public __construct ( Xpressengine\Database\VirtualConnectionInterface $conn, |
||
$conn | Xpressengine\Database\VirtualConnectionInterface | database connection |
$configHandler | config handler | |
$instanceManager | instance manager | |
$request | Illuminate\Http\Request | Request |
public addRevision ( |
||
$doc | document model | |
Résultat | boolean |
public createInstance ( string $instanceId, array $params = [] ) : |
||
$instanceId | string | instance id |
$params | array | parameters |
Résultat |
public getConfigHandler ( ) : |
||
Résultat |
public getDivisionTableName ( |
||
$config | config entity | |
Résultat | string |
public getInstanceManager ( ) : |
||
Résultat |
protected getRevisionModel ( ) : |
||
Résultat |
protected newModel ( ) : |
||
Résultat |
protected newRevisionModel ( array $attributes = [] ) : |
||
$attributes | array | attributes |
Résultat |
public proxyOption ( |
||
$config | config entity | |
Résultat | array |
public put ( |
||
$doc | document model | |
Résultat |
protected removeDivision ( |
||
$doc | document model | |
Résultat | void |
public setModelConfig ( |
||
$doc | document model | |
$instanceId | string | document instance id |
Résultat |
protected ConfigHandler,Xpressengine\Document $configHandler | ||
Résultat |
protected VirtualConnectionInterface,Xpressengine\Database $conn | ||
Résultat | Xpressengine\Database\VirtualConnectionInterface |
protected InstanceManager,Xpressengine\Document $instanceManager | ||
Résultat |
protected Request,Illuminate\Http $request | ||
Résultat | Illuminate\Http\Request |