ConfigEntity
class ConfigEntity extends Entity implements IteratorAggregate
대상의 설정을 가지고 제공해주는 클래스
Properties
protected array | $original | The entity attribute's original state. | from Entity |
$hidden | The attributes that should be hidden for arrays. | from Entity | |
protected array | $fillable | The attributes that are mass assignable. | from Entity |
protected array | $guarded | The attributes that aren't mass assignable. | |
bool | $exists | Indicates if the entity exists. | from Entity |
protected ConfigVO | $vo | config value object | |
protected ConfigEntity | $parent | parent by this config object |
Methods
Constructor
Get the entity's original attribute values.
Fill the model with an array of attributes.
Set value object
Get all of the items in the config entity.
get value, chain of responsibility
get pure object to array
get pure value
set entity value
entities clear
get adjacency parent
depth level
check adjacency
Determine if a given offset exists.
Get the value at a given offset.
Set the value at a given offset.
Unset the value at a given offset.
Get an iterator for the items.
returns current attributes
Dynamically retrieve the value of an attribute.
Details
at line 61
__construct(array $attributes = array())
Constructor
in Entity at line 84
$this
syncOriginal()
Sync the original attributes with the current.
in Entity at line 98
array
getOriginal(string|null $key = null, mixed $default = null)
Get the entity's original attribute values.
at line 87
void
fill(array $attributes)
Fill the model with an array of attributes.
in Entity at line 126
bool
isFillable(string $key)
Determine if the given attribute may be mass assigned.
in Entity at line 145
bool
isGuarded(string $key)
Determine if the given key is guarded.
in Entity at line 155
array
getDirty()
Get the attributes that have been changed since last sync.
in Entity at line 165
array
toArray()
Convert the entity instance to an array.
at line 74
private void
setValueObject(array $attributes)
Set value object
at line 101
array
all()
Get all of the items in the config entity.
at line 115
mixed
get(string $name, mixed $default = null)
get value, chain of responsibility
at line 133
array
getPureAll()
get pure object to array
at line 145
mixed
getPure(string $name, mixed $default = null)
get pure value
at line 169
void
set(string $name, mixed $value)
set entity value
at line 183
void
clear()
entities clear
at line 195
void
setParent(ConfigEntity $ancestor)
make hierarchy to upper
at line 212
ConfigEntity
getParent()
get adjacency parent
at line 222
int
getDepth()
depth level
at line 234
private boolean
isAdjacency(string $ancestorName, string $descendantName)
check adjacency
at line 245
bool
offsetExists(string $offset)
Determine if a given offset exists.
at line 256
mixed
offsetGet(string $offset)
Get the value at a given offset.
at line 268
void
offsetSet(string $offset, mixed $value)
Set the value at a given offset.
at line 279
void
offsetUnset(string $offset)
Unset the value at a given offset.
at line 289
ArrayIterator
getIterator()
Get an iterator for the items.
at line 299
array
getAttributes()
returns current attributes
at line 312
mixed
__get(string $key)
Dynamically retrieve the value of an attribute.