PHP Class Baum\Extensions\Eloquent\Model

Inheritance: extends Illuminate\Database\Eloquent\Model
Afficher le fichier Open project: gazsp/baum Class Usage Examples

Méthodes publiques

Méthode Description
areSoftDeletesEnabled ( ) : boolean Returns wether soft delete functionality is enabled on the model or not.
getObservableEvents ( ) : array Get the observable event names.
moved ( Closure | string $callback, $priority ) : void Register a moved model event with the dispatcher.
moving ( Closure | string $callback, $priority ) : void Register a moving model event with the dispatcher.
reload ( ) : Node Reloads the model from the database.
softDeletesEnabled ( ) : boolean Static method which returns wether soft delete functionality is enabled on the model.

Méthodes protégées

Méthode Description
getFreshInstance ( ) : Node Returns a fresh instance from the database.
newBaseQueryBuilder ( ) : Builder Get a new query builder instance for the connection.

Method Details

areSoftDeletesEnabled() public méthode

Returns wether soft delete functionality is enabled on the model or not.
public areSoftDeletesEnabled ( ) : boolean
Résultat boolean

getFreshInstance() protected méthode

Returns a fresh instance from the database.
protected getFreshInstance ( ) : Node
Résultat Baum\Node

getObservableEvents() public méthode

Get the observable event names.
public getObservableEvents ( ) : array
Résultat array

moved() public static méthode

Register a moved model event with the dispatcher.
public static moved ( Closure | string $callback, $priority ) : void
$callback Closure | string
Résultat void

moving() public static méthode

Register a moving model event with the dispatcher.
public static moving ( Closure | string $callback, $priority ) : void
$callback Closure | string
Résultat void

newBaseQueryBuilder() protected méthode

Get a new query builder instance for the connection.
protected newBaseQueryBuilder ( ) : Builder
Résultat Baum\Extensions\Query\Builder

reload() public méthode

Reloads the model from the database.
public reload ( ) : Node
Résultat Baum\Node

softDeletesEnabled() public static méthode

Static method which returns wether soft delete functionality is enabled on the model.
public static softDeletesEnabled ( ) : boolean
Résultat boolean