PHP 트레잇 Kodeine\Metable\Metable

파일 보기 프로젝트 열기: kodeine/laravel-meta

공개 메소드들

메소드 설명
__get ( $attr )
__isset ( $key )
__set ( $key, $value )
__unset ( $key )
getAttribute ( string $key ) : mixed Get an attribute from the model.
getMeta ( $key = null, $raw = false ) Get Meta Data functions -------------------------
scopeMeta ( $query ) Meta scope for easier join -------------------------
setMeta ( $key, $value = null ) Set Meta Data functions -------------------------
toArray ( ) : array Convert the model instance to an array.
unsetMeta ( $key ) Unset Meta Data functions -------------------------
whereMeta ( $key, $value ) Query Meta Table functions -------------------------

보호된 메소드들

메소드 설명
getMetaArray ( $keys, $raw = false )
getMetaData ( )
getMetaKeyName ( ) : string Return the foreign key name for the meta table
getMetaNull ( )
getMetaString ( $key, $raw = false )
getMetaTable ( ) : null Return the table name
getModelKey ( ) : string Return the key for the model
getModelStub ( )
saveMeta ( )
setMetaArray ( )
setMetaString ( $key, $value )
setObserver ( ) Trait specific functions -------------------------
unsetMetaArray ( )
unsetMetaString ( $key )

메소드 상세

__get() 공개 메소드

public __get ( $attr )

__isset() 공개 메소드

public __isset ( $key )

__set() 공개 메소드

public __set ( $key, $value )

__unset() 공개 메소드

public __unset ( $key )

getAttribute() 공개 메소드

Get an attribute from the model.
public getAttribute ( string $key ) : mixed
$key string
리턴 mixed

getMeta() 공개 메소드

Get Meta Data functions -------------------------
public getMeta ( $key = null, $raw = false )

getMetaArray() 보호된 메소드

protected getMetaArray ( $keys, $raw = false )

getMetaData() 보호된 메소드

protected getMetaData ( )

getMetaKeyName() 보호된 메소드

Return the foreign key name for the meta table
protected getMetaKeyName ( ) : string
리턴 string

getMetaNull() 보호된 메소드

protected getMetaNull ( )

getMetaString() 보호된 메소드

protected getMetaString ( $key, $raw = false )

getMetaTable() 보호된 메소드

Return the table name
protected getMetaTable ( ) : null
리턴 null

getModelKey() 보호된 메소드

Return the key for the model
protected getModelKey ( ) : string
리턴 string

getModelStub() 보호된 메소드

protected getModelStub ( )

saveMeta() 보호된 메소드

protected saveMeta ( )

scopeMeta() 공개 메소드

Meta scope for easier join -------------------------
public scopeMeta ( $query )

setMeta() 공개 메소드

Set Meta Data functions -------------------------
public setMeta ( $key, $value = null )

setMetaArray() 보호된 메소드

protected setMetaArray ( )

setMetaString() 보호된 메소드

protected setMetaString ( $key, $value )

setObserver() 보호된 메소드

Trait specific functions -------------------------
protected setObserver ( )

toArray() 공개 메소드

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

unsetMeta() 공개 메소드

Unset Meta Data functions -------------------------
public unsetMeta ( $key )

unsetMetaArray() 보호된 메소드

protected unsetMetaArray ( )

unsetMetaString() 보호된 메소드

protected unsetMetaString ( $key )

whereMeta() 공개 메소드

Query Meta Table functions -------------------------
public whereMeta ( $key, $value )