trait HandleRelatedBrowsers (View source)

Mimic HandleBrowsers, but when the relation uses HasRelated instead of being a proper model relation.

Properties

protected string|array|(array)|mix|(string|array)) $relatedBrowsers

All related browsers used in the model, as an array of browser names: [ 'books', 'publications' ].

Methods

void
afterSaveHandleRelatedBrowsers(Model $object, array $fields)

No description

array
getFormFieldsHandleRelatedBrowsers(Model $object, array $fields)

No description

Collection
getRelatedBrowsers()

Get all related browser' detail info from the $relatedBrowsers attribute.

Details

void afterSaveHandleRelatedBrowsers(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

void

array getFormFieldsHandleRelatedBrowsers(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

array

protected Collection getRelatedBrowsers()

Get all related browser' detail info from the $relatedBrowsers attribute.

The missing information will be inferred by convention of Twill.

Return Value

Collection