PHP Класс Baum\Extensions\Eloquent\Model

Наследование: extends Illuminate\Database\Eloquent\Model
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
getFreshInstance ( ) : Node Returns a fresh instance from the database.
newBaseQueryBuilder ( ) : Builder Get a new query builder instance for the connection.

Описание методов

areSoftDeletesEnabled() публичный метод

Returns wether soft delete functionality is enabled on the model or not.
public areSoftDeletesEnabled ( ) : boolean
Результат boolean

getFreshInstance() защищенный метод

Returns a fresh instance from the database.
protected getFreshInstance ( ) : Node
Результат Baum\Node

getObservableEvents() публичный метод

Get the observable event names.
public getObservableEvents ( ) : array
Результат array

moved() публичный статический метод

Register a moved model event with the dispatcher.
public static moved ( Closure | string $callback, $priority ) : void
$callback Closure | string
Результат void

moving() публичный статический метод

Register a moving model event with the dispatcher.
public static moving ( Closure | string $callback, $priority ) : void
$callback Closure | string
Результат void

newBaseQueryBuilder() защищенный метод

Get a new query builder instance for the connection.
protected newBaseQueryBuilder ( ) : Builder
Результат Baum\Extensions\Query\Builder

reload() публичный метод

Reloads the model from the database.
public reload ( ) : Node
Результат Baum\Node

softDeletesEnabled() публичный статический метод

Static method which returns wether soft delete functionality is enabled on the model.
public static softDeletesEnabled ( ) : boolean
Результат boolean