Backend\Behaviors\RelationController\HasOverrides
Overview
HasOverrides in the controller
Public Methods
public relationAfterAdd()
public relationAfterAdd(string $field, iterable $models): void
relationAfterAdd is called after the adding related models
public relationAfterCancel()
public relationAfterCancel(string $field, Model $model): void
relationAfterCancel called after the user has cancelled the form
public relationAfterCreate()
public relationAfterCreate(string $field, Model $model): void
relationAfterCreate is called after the creation form is saved
public relationAfterDelete()
public relationAfterDelete(string $field, iterable $models): void
relationAfterDelete called after the related models are deleted
public relationAfterRemove()
public relationAfterRemove(string $field, iterable $models): void
relationAfterRemove is called after the removing related models
public relationAfterSave()
public relationAfterSave(string $field, Model $model): void
relationAfterSave is called after the creation or updating form is saved
public relationAfterUpdate()
public relationAfterUpdate(string $field, Model $model): void
relationAfterUpdate is called after the updating form is saved
public relationBeforeAdd()
public relationBeforeAdd(string $field, iterable $models): void
relationBeforeAdd is called before the adding related models
public relationBeforeCreate()
public relationBeforeCreate(string $field, Model $model): void
relationBeforeCreate is called before the creation form is saved
public relationBeforeRemove()
public relationBeforeRemove(string $field, iterable $models): void
relationBeforeRemove is called before the removing related models
public relationBeforeSave()
public relationBeforeSave(string $field, Model $model): void
relationBeforeSave is called before the creation or updating form is saved
public relationBeforeUpdate()
public relationBeforeUpdate(string $field, Model $model): void
relationBeforeUpdate is called before the updating form is saved
public relationExtendConfig()
public relationExtendConfig(
object $config,
string $field,
October\Rain\Database\Model $model
): void
relationExtendConfig provides an opportunity to manipulate the field configuration.
public relationExtendManageFilterWidget()
public relationExtendManageFilterWidget(
Backend\Widgets\Filter $widget,
string $field,
October\Rain\Database\Model $model
): void
relationExtendManageFilterWidget provides an opportunity to manipulate the manage filter widget.
public relationExtendManageFormQuery()
public relationExtendManageFormQuery(
October\Rain\Database\Builder $query,
$query
): void
relationExtendManageFormQuery extends the query used for finding the form model. Extra conditions can be applied to the query, for example, $query->withTrashed();
public relationExtendManageFormWidget()
public relationExtendManageFormWidget(
Backend\Widgets\Form $widget,
string $field,
October\Rain\Database\Model $model
): void
relationExtendManageFormWidget provides an opportunity to manipulate the manage widget.
public relationExtendManageListWidget()
public relationExtendManageListWidget(
Backend\Widgets\List $widget,
string $field,
October\Rain\Database\Model $model
): void
relationExtendManageListWidget provides an opportunity to manipulate the view widget.
public relationExtendManageWidget()
public relationExtendManageWidget($widget, $field, $model): void
public relationExtendPivotFormWidget()
public relationExtendPivotFormWidget(
Backend\Widgets\Form $widget,
string $field,
October\Rain\Database\Model $model
): void
relationExtendPivotWidget provides an opportunity to manipulate the pivot widget.
public relationExtendPivotWidget()
public relationExtendPivotWidget($widget, $field, $model): void
public relationExtendRefreshResults()
public relationExtendRefreshResults(string $field): array
relationExtendRefreshResults is needed because the view widget is often refreshed when the manage widget makes a change, you can use this method to inject additional containers when this process occurs. Return an array with the extra values to send to the browser, eg:
return ['#myCounter' => 'Total records: 6'];
public relationExtendViewFilterWidget()
public relationExtendViewFilterWidget(
Backend\Widgets\Filter $widget,
string $field,
October\Rain\Database\Model $model
): void
relationExtendViewFilterWidget provides an opportunity to manipulate the view filter widget.
public relationExtendViewFormWidget()
public relationExtendViewFormWidget(
Backend\Widgets\Form $widget,
string $field,
October\Rain\Database\Model $model
): void
relationExtendViewFormWidget provides an opportunity to manipulate the manage widget.
public relationExtendViewListWidget()
public relationExtendViewListWidget(
Backend\Widgets\List $widget,
string $field,
October\Rain\Database\Model $model
): void
relationExtendViewListWidget provides an opportunity to manipulate the view widget.
public relationExtendViewWidget()
public relationExtendViewWidget($widget, $field, $model): void