Backend\Behaviors\RelationController\HasOverrides

Overview

HasOverrides in the controller


Public Methods

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, Model $model): void

relationAfterDelete called after the form model is deleted

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 relationBeforeCreate()

public relationBeforeCreate(string $field, Model $model): void

relationBeforeCreate is called before the creation form is saved

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