PHP Class Baum\Extensions\Eloquent\Model

Inheritance: extends Illuminate\Database\Eloquent\Model
Mostra file Open project: gazsp/baum Class Usage Examples

Public Methods

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

Protected Methods

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

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

getFreshInstance() protected method

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

getObservableEvents() public method

Get the observable event names.
public getObservableEvents ( ) : array
return array

moved() public static method

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

moving() public static method

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

newBaseQueryBuilder() protected method

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

reload() public method

Reloads the model from the database.
public reload ( ) : Node
return Baum\Node

softDeletesEnabled() public static method

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