PHP 클래스 Xpressengine\Support\Entity

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

공개 프로퍼티들

프로퍼티 타입 설명
$exists boolean Indicates if the entity exists.

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable array The attributes that are mass assignable.
$guarded array The attributes that aren't mass assignable.
$hidden array The attributes that should be hidden for arrays.
$original array The entity attribute's original state.

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) Constructor
fill ( array $attributes ) Fill the model with an array of attributes.
getDirty ( ) : array Get the attributes that have been changed since last sync.
getOriginal ( string | null $key = null, mixed $default = null ) : array Get the entity's original attribute values.
isFillable ( string $key ) : boolean Determine if the given attribute may be mass assigned.
isGuarded ( string $key ) : boolean Determine if the given key is guarded.
syncOriginal ( ) Sync the original attributes with the current.
toArray ( ) : array Convert the entity instance to an array.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( array $attributes = [] )
$attributes array attributes

fill() 공개 메소드

Fill the model with an array of attributes.
public fill ( array $attributes )
$attributes array attributes

getDirty() 공개 메소드

Get the attributes that have been changed since last sync.
public getDirty ( ) : array
리턴 array

getOriginal() 공개 메소드

Get the entity's original attribute values.
public getOriginal ( string | null $key = null, mixed $default = null ) : array
$key string | null key name
$default mixed default value when not exists
리턴 array

isFillable() 공개 메소드

Determine if the given attribute may be mass assigned.
public isFillable ( string $key ) : boolean
$key string key name
리턴 boolean

isGuarded() 공개 메소드

Determine if the given key is guarded.
public isGuarded ( string $key ) : boolean
$key string key name
리턴 boolean

syncOriginal() 공개 메소드

Sync the original attributes with the current.
public syncOriginal ( )

toArray() 공개 메소드

Convert the entity instance to an array.
public toArray ( ) : array
리턴 array

프로퍼티 상세

$exists 공개적으로 프로퍼티

Indicates if the entity exists.
public bool $exists
리턴 boolean

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

The attributes that are mass assignable.
protected array $fillable
리턴 array

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

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

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

The attributes that should be hidden for arrays.
protected array $hidden
리턴 array

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

The entity attribute's original state.
protected array $original
리턴 array