PHP Class app\models\EntityModel

Inheritance: extends Eloquen\Eloquent
Afficher le fichier Open project: hillelcoren/invoice-ninja Class Usage Examples

Méthodes publiques

Свойство Type Description
$notifySubscriptions boolean
$timestamps boolean

Protected Properties

Свойство Type Description
$hasPublicId boolean
$hidden array

Méthodes publiques

Méthode 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 méthode

public static createNew ( null $context = null ) : mixed
$context null
Résultat mixed

entityKey() public méthode

public entityKey ( )

getActivityKey() public méthode

public getActivityKey ( ) : string
Résultat string

getClassName() public static méthode

public static getClassName ( $entityType ) : string
$entityType
Résultat string

getDisplayName() public méthode

public getDisplayName ( ) : mixed
Résultat mixed

getIcon() public static méthode

public static getIcon ( $entityType )

getKeyField() public méthode

public getKeyField ( ) : string
Résultat string

getName() public méthode

public getName ( ) : mixed
Résultat mixed

getPrivateId() public static méthode

public static getPrivateId ( $publicId ) : mixed
$publicId
Résultat mixed

getTransformerName() public static méthode

public static getTransformerName ( $entityType ) : string
$entityType
Résultat string

isChanged() public méthode

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

isEntityType() public méthode

public isEntityType ( $type )

scopeScope() public méthode

public scopeScope ( $query, boolean $publicId = false, boolean $accountId = false ) : mixed
$query
$publicId boolean
$accountId boolean
Résultat mixed

scopeWithArchived() public méthode

public scopeWithArchived ( $query ) : mixed
$query
Résultat mixed

setNullValues() public méthode

public setNullValues ( )

subEntityType() public méthode

public subEntityType ( )

validate() public static méthode

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

Property Details

$hasPublicId protected_oe static_oe property

protected static bool $hasPublicId
Résultat boolean

$hidden protected_oe property

protected array $hidden
Résultat array

$notifySubscriptions public_oe static_oe property

public static bool $notifySubscriptions
Résultat boolean

$timestamps public_oe property

public bool $timestamps
Résultat boolean