PHP 클래스 Xpressengine\Config\ConfigEntity

저자: XE Developers ([email protected])
상속: extends Xpressengine\Support\Entity, implements IteratorAggregat\IteratorAggregate
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$guarded array The attributes that aren't mass assignable.
$parent ConfigEntity parent by this config object
$vo ConfigVO config value object

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) constructor
__get ( string $key ) : mixed Dynamically retrieve the value of an attribute.
all ( ) : array Get all of the items in the config entity.
clear ( ) : void entities clear
fill ( array $attributes ) : void Fill all attributes
get ( string $name, mixed $default = null ) : mixed get value, chain of responsibility
getAttributes ( ) : array returns current attributes
getDepth ( ) : integer depth level
getIterator ( ) : ArrayIterator Get an iterator for the items.
getParent ( ) : ConfigEntity get adjacency parent
getPure ( string $name, mixed $default = null ) : mixed get pure value
getPureAll ( ) : array get pure object to array
offsetExists ( string $offset ) : boolean Determine if a given offset exists.
offsetGet ( string $offset ) : mixed Get the value at a given offset.
offsetSet ( string $offset, mixed $value ) : void Set the value at a given offset.
offsetUnset ( string $offset ) : void Unset the value at a given offset.
set ( string $name, mixed $value ) : void set entity value
setParent ( ConfigEntity $ancestor ) : void make hierarchy to upper

비공개 메소드들

메소드 설명
isAdjacency ( string $ancestorName, string $descendantName ) : boolean check adjacency
setValueObject ( array $attributes ) : void Set value object

메소드 상세

__construct() 공개 메소드

constructor
public __construct ( array $attributes = [] )
$attributes array name and variables

__get() 공개 메소드

Dynamically retrieve the value of an attribute.
public __get ( string $key ) : mixed
$key string key
리턴 mixed

all() 공개 메소드

Get all of the items in the config entity.
public all ( ) : array
리턴 array

clear() 공개 메소드

entities clear
public clear ( ) : void
리턴 void

fill() 공개 메소드

Fill all attributes
public fill ( array $attributes ) : void
$attributes array attributes in object
리턴 void

get() 공개 메소드

get value, chain of responsibility
public get ( string $name, mixed $default = null ) : mixed
$name string variable name
$default mixed default value
리턴 mixed

getAttributes() 공개 메소드

returns current attributes
public getAttributes ( ) : array
리턴 array

getDepth() 공개 메소드

depth level
public getDepth ( ) : integer
리턴 integer

getIterator() 공개 메소드

Get an iterator for the items.

getParent() 공개 메소드

get adjacency parent
public getParent ( ) : ConfigEntity
리턴 ConfigEntity

getPure() 공개 메소드

get pure value
public getPure ( string $name, mixed $default = null ) : mixed
$name string variable name
$default mixed default value
리턴 mixed

getPureAll() 공개 메소드

get pure object to array
public getPureAll ( ) : array
리턴 array

offsetExists() 공개 메소드

Determine if a given offset exists.
public offsetExists ( string $offset ) : boolean
$offset string array key name
리턴 boolean

offsetGet() 공개 메소드

Get the value at a given offset.
public offsetGet ( string $offset ) : mixed
$offset string array key name
리턴 mixed

offsetSet() 공개 메소드

Set the value at a given offset.
public offsetSet ( string $offset, mixed $value ) : void
$offset string array key name
$value mixed array value
리턴 void

offsetUnset() 공개 메소드

Unset the value at a given offset.
public offsetUnset ( string $offset ) : void
$offset string array key name
리턴 void

set() 공개 메소드

set entity value
public set ( string $name, mixed $value ) : void
$name string variable name
$value mixed variable value
리턴 void

setParent() 공개 메소드

make hierarchy to upper
public setParent ( ConfigEntity $ancestor ) : void
$ancestor ConfigEntity config object
리턴 void

프로퍼티 상세

$guarded 보호되어 있는 프로퍼티

The attributes that aren't mass assignable.
protected array $guarded
리턴 array

$parent 보호되어 있는 프로퍼티

parent by this config object
protected ConfigEntity,Xpressengine\Config $parent
리턴 ConfigEntity

$vo 보호되어 있는 프로퍼티

config value object
protected ConfigVO,Xpressengine\Config $vo
리턴 ConfigVO