Свойство | Тип | Описание | |
---|---|---|---|
$configHandler | |||
$conn | Xpressengine\Database\VirtualConnectionInterface | ||
$instanceManager | |||
$model | model class | ||
$request | Illuminate\Http\Request | ||
$revisionModel | model class |
Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | boolean |
public createInstance ( string $instanceId, array $params = [] ) : |
||
$instanceId | string | instance id |
$params | array | parameters |
Результат |
public getConfigHandler ( ) : |
||
Результат |
public getDivisionTableName ( |
||
$config | config entity | |
Результат | string |
public getInstanceManager ( ) : |
||
Результат |
protected getRevisionModel ( ) : |
||
Результат |
protected newModel ( ) : |
||
Результат |
protected newRevisionModel ( array $attributes = [] ) : |
||
$attributes | array | attributes |
Результат |
public proxyOption ( |
||
$config | config entity | |
Результат | array |
public put ( |
||
$doc | document model | |
Результат |
protected removeDivision ( |
||
$doc | document model | |
Результат | void |
public setModelConfig ( |
||
$doc | document model | |
$instanceId | string | document instance id |
Результат |
protected ConfigHandler,Xpressengine\Document $configHandler | ||
Результат |
protected VirtualConnectionInterface,Xpressengine\Database $conn | ||
Результат | Xpressengine\Database\VirtualConnectionInterface |
protected InstanceManager,Xpressengine\Document $instanceManager | ||
Результат |
protected Request,Illuminate\Http $request | ||
Результат | Illuminate\Http\Request |