Property | Type | Description | |
---|---|---|---|
$closures | array | closure list | |
$repo | Xpressengine\Config\ConfigRepository | repository instance | |
$validator | validator instance |
Method | Description | |
---|---|---|
__construct ( Xpressengine\Config\ConfigRepository $repo, |
constructor | |
add ( string $group, array $collection, string $siteKey = 'default' ) : |
create new config | |
children ( |
get next level configs | |
get ( string $group, boolean $create = false, string $siteKey = 'default' ) : |
returns config object by target name | |
getOrNew ( string $group, string $siteKey = 'default' ) : |
if not exists, create new entity object by target name | |
getPureVal ( string $key, mixed $default = null, string $siteKey = 'default' ) : mixed | returns config pure value | |
getVal ( string $key, mixed $default = null, boolean $pure = false, string $siteKey = 'default' ) : mixed | returns config value | |
modify ( |
modify config information | |
move ( |
Move entity hierarchy to new parent or root | |
put ( string $group, array $collection, boolean $toDesc = false, callable $filter = null, string $siteKey = 'default' ) : |
config change | |
remove ( |
remove config | |
removeByName ( string $name, string $siteKey = 'default' ) : void | remove config by group name | |
set ( string $group, array $collection, boolean $toDesc = false, callable $filter = null, string $siteKey = 'default' ) : |
multiple set config values | |
setVal ( string $key, mixed $value, boolean $toDesc = false, callable $filter = null, string $siteKey = 'default' ) : void | set config value |
Method | Description | |
---|---|---|
bindClosure ( |
binding registered closure to config | |
build ( |
build config object | |
convey ( |
convey to descendants | |
share ( |
shared when closure value | |
validating ( |
validation config |
Method | Description | |
---|---|---|
parseKey ( string $key ) : array | parse a key into group and item | |
setAncestors ( |
ancestors setter | |
sort ( array $configs, string $flag = 'asc' ) : array | sort list |
public __construct ( Xpressengine\Config\ConfigRepository $repo, |
||
$repo | Xpressengine\Config\ConfigRepository | repository instance |
$validator | validator instance |
protected bindClosure ( |
||
$config | config instance | |
return | void |
protected build ( |
||
$config | config instance | |
return |
public modify ( |
||
$config | config entity instance | |
return |
public put ( string $group, array $collection, boolean $toDesc = false, callable $filter = null, string $siteKey = 'default' ) : |
||
$group | string | the name of target |
$collection | array | items and values to be set |
$toDesc | boolean | descendants modify if true |
$filter | callable | filter function |
$siteKey | string | site key |
return |
public set ( string $group, array $collection, boolean $toDesc = false, callable $filter = null, string $siteKey = 'default' ) : |
||
$group | string | the name of target |
$collection | array | items and values to be set |
$toDesc | boolean | descendants modify if true |
$filter | callable | filter function |
$siteKey | string | site key |
return |
public setVal ( string $key, mixed $value, boolean $toDesc = false, callable $filter = null, string $siteKey = 'default' ) : void | ||
$key | string | the name of target including entity name |
$value | mixed | the value to be set |
$toDesc | boolean | descendants modify if true |
$filter | callable | filter function |
$siteKey | string | site key |
return | void |
protected validating ( |
||
$config | config instance | |
return | void |
protected ConfigRepository,Xpressengine\Config $repo | ||
return | Xpressengine\Config\ConfigRepository |