PHP Class Xpressengine\DynamicField\ConfigHandler

Author: XE Developers ([email protected])
Mostra file Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Property Type Description
$configManager Xpressengine\Config\ConfigManager
$connection Xpressengine\Database\VirtualConnectionInterface
$default array default config
$tablePrefix string

Public Methods

Method Description
__construct ( Xpressengine\Database\VirtualConnectionInterface $connection, ConfigManager $configManager ) create instance
add ( ConfigEntity $config ) : void config 추가
get ( string $group, string $id ) : ConfigEntity | null config entity 반환
getConfigName ( ConfigEntity $config ) : string ConfigEntity 에서 ConfigManager 에 사용될 config 이름 반환.
getDefault ( ) : ConfigEntity get default config
getRevisionTableName ( ConfigEntity $config ) : string 생성된 database table 의 revision table 이름 반환.
getTableName ( ConfigEntity $config ) : string $config 의 group 과 id 로 생성되는 field type 의 database table 이름 반환 dynamic field type 의 데이터 저장 table 이름
gets ( string $group ) : array config entity list 반환
isTableMethodCreate ( ConfigEntity $config ) : boolean 생성된 Dynamic Field 가 테이블 생성 방식인지 확인
parent ( string $group ) : ConfigEntity | null group 의 parent config 반환 config entity 반환
put ( ConfigEntity $config ) : void config 수정
remove ( ConfigEntity $config ) : void config 제거
rules ( ) : array get validator rules
setParent ( string $group ) : void parent config 설정
setTablePrefix ( string $tablePrefix ) : void set table prefix

Method Details

__construct() public method

create instance
public __construct ( Xpressengine\Database\VirtualConnectionInterface $connection, ConfigManager $configManager )
$connection Xpressengine\Database\VirtualConnectionInterface database connection
$configManager Xpressengine\Config\ConfigManager config manager

add() public method

config 추가
public add ( ConfigEntity $config ) : void
$config Xpressengine\Config\ConfigEntity config entity
return void

get() public method

config entity 반환
public get ( string $group, string $id ) : ConfigEntity | null
$group string group name
$id string dynamic field id
return Xpressengine\Config\ConfigEntity | null

getConfigName() public method

ConfigEntity 에서 ConfigManager 에 사용될 config 이름 반환.
public getConfigName ( ConfigEntity $config ) : string
$config Xpressengine\Config\ConfigEntity config entity
return string

getDefault() public method

get default config
public getDefault ( ) : ConfigEntity
return Xpressengine\Config\ConfigEntity

getRevisionTableName() public method

생성된 database table 의 revision table 이름 반환.
public getRevisionTableName ( ConfigEntity $config ) : string
$config Xpressengine\Config\ConfigEntity config entity
return string

getTableName() public method

$config 의 group 과 id 로 생성되는 field type 의 database table 이름 반환 dynamic field type 의 데이터 저장 table 이름
public getTableName ( ConfigEntity $config ) : string
$config Xpressengine\Config\ConfigEntity config entity
return string

gets() public method

config entity list 반환
public gets ( string $group ) : array
$group string group name
return array

isTableMethodCreate() public method

생성된 Dynamic Field 가 테이블 생성 방식인지 확인
public isTableMethodCreate ( ConfigEntity $config ) : boolean
$config Xpressengine\Config\ConfigEntity config entity
return boolean

parent() public method

group 의 parent config 반환 config entity 반환
public parent ( string $group ) : ConfigEntity | null
$group string group name
return Xpressengine\Config\ConfigEntity | null

put() public method

config 수정
public put ( ConfigEntity $config ) : void
$config Xpressengine\Config\ConfigEntity config entity
return void

remove() public method

config 제거
public remove ( ConfigEntity $config ) : void
$config Xpressengine\Config\ConfigEntity config entity
return void

rules() public method

get validator rules
public rules ( ) : array
return array

setParent() public method

parent config 설정
public setParent ( string $group ) : void
$group string group name
return void

setTablePrefix() public method

set table prefix
public setTablePrefix ( string $tablePrefix ) : void
$tablePrefix string table prefix
return void

Property Details

$configManager protected_oe property

protected ConfigManager,Xpressengine\Config $configManager
return Xpressengine\Config\ConfigManager

$connection protected_oe property

protected VirtualConnectionInterface,Xpressengine\Database $connection
return Xpressengine\Database\VirtualConnectionInterface

$default protected_oe property

default config
protected array $default
return array

$tablePrefix protected_oe property

protected string $tablePrefix
return string