PHP Interface Xpressengine\Register\RegisterInterface

Author: XE Team (developers) ([email protected])
Inheritance: extends ArrayAcces\ArrayAccess
Show file Open project: xpressengine/xpressengine

Public Methods

Method Description
add ( array | string $key, mixed $value ) : void add item 키가 없으면 등록할 수 없음 - Arr class spec 있는거을 덮어 씀
all ( ) : array Get all of the configuration items for the application.
get ( string $key, mixed $default = null ) : mixed Get the specified configuration value.
has ( string $key ) : boolean Determine if the given configuration value exists.
prepend ( string $key, mixed $value ) : void Prepend a value onto an array configuration value.
push ( string $key, mixed $id, mixed $value = null ) : void Push a value onto an array configuration value.
set ( array | string $key, mixed $value = null ) : void Set a given configuration value.

Method Details

add() public method

add item 키가 없으면 등록할 수 없음 - Arr class spec 있는거을 덮어 씀
public add ( array | string $key, mixed $value ) : void
$key array | string key
$value mixed value for adding
return void

all() public method

Get all of the configuration items for the application.
public all ( ) : array
return array

get() public method

Get the specified configuration value.
public get ( string $key, mixed $default = null ) : mixed
$key string key
$default mixed default value
return mixed

has() public method

Determine if the given configuration value exists.
public has ( string $key ) : boolean
$key string key
return boolean

prepend() public method

Prepend a value onto an array configuration value.
public prepend ( string $key, mixed $value ) : void
$key string key
$value mixed value for prepend
return void

push() public method

Push a value onto an array configuration value.
public push ( string $key, mixed $id, mixed $value = null ) : void
$key string key
$id mixed pushed data's id
$value mixed pushed data's value
return void

set() public method

Set a given configuration value.
public set ( array | string $key, mixed $value = null ) : void
$key array | string key
$value mixed value for setting
return void