PHP 클래스 app\models\EntityModel

상속: extends Eloquen\Eloquent
파일 보기 프로젝트 열기: hillelcoren/invoice-ninja 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$notifySubscriptions boolean
$timestamps boolean

보호된 프로퍼티들

프로퍼티 타입 설명
$hasPublicId boolean
$hidden array

공개 메소드들

메소드 설명
createNew ( null $context = null ) : mixed
entityKey ( )
getActivityKey ( ) : string
getClassName ( $entityType ) : string
getDisplayName ( ) : mixed
getIcon ( $entityType )
getKeyField ( ) : string
getName ( ) : mixed
getPrivateId ( $publicId ) : mixed
getTransformerName ( $entityType ) : string
isChanged ( ) isDirty return true if the field's new value is the same as the old one
isEntityType ( $type )
scopeScope ( $query, boolean $publicId = false, boolean $accountId = false ) : mixed
scopeWithArchived ( $query ) : mixed
setNullValues ( )
subEntityType ( )
validate ( $data, $entityType, $entity = false ) : boolean | string

메소드 상세

createNew() 공개 정적인 메소드

public static createNew ( null $context = null ) : mixed
$context null
리턴 mixed

entityKey() 공개 메소드

public entityKey ( )

getActivityKey() 공개 메소드

public getActivityKey ( ) : string
리턴 string

getClassName() 공개 정적인 메소드

public static getClassName ( $entityType ) : string
$entityType
리턴 string

getDisplayName() 공개 메소드

public getDisplayName ( ) : mixed
리턴 mixed

getIcon() 공개 정적인 메소드

public static getIcon ( $entityType )

getKeyField() 공개 메소드

public getKeyField ( ) : string
리턴 string

getName() 공개 메소드

public getName ( ) : mixed
리턴 mixed

getPrivateId() 공개 정적인 메소드

public static getPrivateId ( $publicId ) : mixed
$publicId
리턴 mixed

getTransformerName() 공개 정적인 메소드

public static getTransformerName ( $entityType ) : string
$entityType
리턴 string

isChanged() 공개 메소드

isDirty return true if the field's new value is the same as the old one
public isChanged ( )

isEntityType() 공개 메소드

public isEntityType ( $type )

scopeScope() 공개 메소드

public scopeScope ( $query, boolean $publicId = false, boolean $accountId = false ) : mixed
$query
$publicId boolean
$accountId boolean
리턴 mixed

scopeWithArchived() 공개 메소드

public scopeWithArchived ( $query ) : mixed
$query
리턴 mixed

setNullValues() 공개 메소드

public setNullValues ( )

subEntityType() 공개 메소드

public subEntityType ( )

validate() 공개 정적인 메소드

public static validate ( $data, $entityType, $entity = false ) : boolean | string
$data
$entityType
리턴 boolean | string

프로퍼티 상세

$hasPublicId 보호되어 있는 정적으로 프로퍼티

protected static bool $hasPublicId
리턴 boolean

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

protected array $hidden
리턴 array

$notifySubscriptions 공개적으로 정적으로 프로퍼티

public static bool $notifySubscriptions
리턴 boolean

$timestamps 공개적으로 프로퍼티

public bool $timestamps
리턴 boolean