Property | Type | Description | |
---|---|---|---|
$connection | Xpressengine\Database\VirtualConnectionInterface | ||
$dynamic | boolean | dynamic query | |
$dynamicTables | array | dynamic query 사용하면서 join 된 테이블 정보 | |
$options | array | ProxyManager 로 전달될 값 dynamic() 메소드를 이용할 경우 options 를 지정할 수 있음 | |
$proxy | boolean | proxyManager 동작 여부 설정 | |
$schemas | array | schema() 메소드를 통해 가져온 스키마 데이터 | |
$table | string | ||
$targetName | string | A table 의 이름으로 처리하지 못하는 이유는 게시판 처럼 instanceId 로 처리하는 경우가 있기 때문 DynamicField 의 config targetName attribute value |
Method | Description | |
---|---|---|
count ( string $columns = '*' ) : array | static[] | get list | |
delete ( mixed $id = null ) : integer | Delete a record from the database. | |
find ( integer $id, array $columns = ['*'] ) : mixed | static | Execute a query for a single record by ID. | |
first ( array $columns = ['*'] ) : mixed | static | get first row | |
get ( array $columns = ['*'] ) : array | static[] | get list | |
getDynamicTables ( ) : array | get dynamic join table | |
getProxyManager ( ) : |
get proxy manager | |
getQuery ( ) : |
get illuminate database query builder | |
hasDynamicTable ( string $table ) : boolean | has dynamic join table | |
insert ( array $args ) : boolean | insert data | |
insertGetId ( array $args, string $sequence = null ) : integer | insert data and get id | |
paginate ( integer $perPage = 15, array $columns = ['*'], string $pageName = 'page', integer | null $page = null ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | Paginate the given query into a simple paginator. | |
setDynamicTable ( string $table ) | set dynamic join table information | |
setProxyOption ( array $options, boolean $merge = true ) | proxy 를 위한 options 설정 | |
simplePaginate ( integer $perPage = 15, array $columns = ['*'], string $pageName = 'page' ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | Get a paginator only supporting simple next and previous links. | |
update ( array $args ) : integer | update data | |
useDynamic ( boolean $use = true ) | dynamic filter 처리 유무 | |
useProxy ( boolean $use = true ) | 프록시 처리 유무 설정 |
Method | Description | |
---|---|---|
filter ( array $args, array $columns ) : array | $args 로 넘어온 데이터와 $columns 를 비교해서 $args 값을 거른다. | |
schema ( ) : array | get table schema |
public getDynamicTables ( ) : array | ||
return | array |
public getProxyManager ( ) : |
||
return |
public getQuery ( ) : |
||
return |
public hasDynamicTable ( string $table ) : boolean | ||
$table | string | table name |
return | boolean |
public paginate ( integer $perPage = 15, array $columns = ['*'], string $pageName = 'page', integer | null $page = null ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | ||
$perPage | integer | count of list |
$columns | array | get columns |
$pageName | string | page parameter name |
$page | integer | null | page number |
return | Illuminate\Contracts\Pagination\LengthAwarePaginator |
public setDynamicTable ( string $table ) | ||
$table | string | table name |
public setProxyOption ( array $options, boolean $merge = true ) | ||
$options | array | proxy option |
$merge | boolean | merge options or not |
public simplePaginate ( integer $perPage = 15, array $columns = ['*'], string $pageName = 'page' ) : Illuminate\Contracts\Pagination\LengthAwarePaginator | ||
$perPage | integer | count of list |
$columns | array | get columns |
$pageName | string | page parameter name |
return | Illuminate\Contracts\Pagination\LengthAwarePaginator |
public useDynamic ( boolean $use = true ) | ||
$use | boolean | use dynamic flag |
protected VirtualConnectionInterface,Xpressengine\Database $connection | ||
return | Xpressengine\Database\VirtualConnectionInterface |
protected array $dynamicTables | ||
return | array |
protected array $options | ||
return | array |
protected string $targetName | ||
return | string |