PHP Class app\models\EntityModel

Inheritance: extends Eloquen\Eloquent
Datei anzeigen Open project: hillelcoren/invoice-ninja Class Usage Examples

Public Properties

Property Type Description
$notifySubscriptions boolean
$timestamps boolean

Protected Properties

Property Type Description
$hasPublicId boolean
$hidden array

Public Methods

Method Description
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

Method Details

createNew() public static method

public static createNew ( null $context = null ) : mixed
$context null
return mixed

entityKey() public method

public entityKey ( )

getActivityKey() public method

public getActivityKey ( ) : string
return string

getClassName() public static method

public static getClassName ( $entityType ) : string
$entityType
return string

getDisplayName() public method

public getDisplayName ( ) : mixed
return mixed

getIcon() public static method

public static getIcon ( $entityType )

getKeyField() public method

public getKeyField ( ) : string
return string

getName() public method

public getName ( ) : mixed
return mixed

getPrivateId() public static method

public static getPrivateId ( $publicId ) : mixed
$publicId
return mixed

getTransformerName() public static method

public static getTransformerName ( $entityType ) : string
$entityType
return string

isChanged() public method

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

isEntityType() public method

public isEntityType ( $type )

scopeScope() public method

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

scopeWithArchived() public method

public scopeWithArchived ( $query ) : mixed
$query
return mixed

setNullValues() public method

public setNullValues ( )

subEntityType() public method

public subEntityType ( )

validate() public static method

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

Property Details

$hasPublicId protected_oe static_oe property

protected static bool $hasPublicId
return boolean

$hidden protected_oe property

protected array $hidden
return array

$notifySubscriptions public_oe static_oe property

public static bool $notifySubscriptions
return boolean

$timestamps public_oe property

public bool $timestamps
return boolean