trait HandleRevisions (View source)

Properties

protected string $revisionLimitJobQueue

The Laravel queue name to be used for the revision limiting.

Methods

hydrateHandleRevisions(TwillModelContract $object, array $fields)

No description

array
afterSaveOriginalDataHandleRevisions(TwillModelContract $object, array $fields)

No description

array
createRevisionIfNeeded(TwillModelContract $object, array $fields)

No description

preview(int $id, array $fields)

No description

hydrateObject(TwillModelContract $object, array $fields)

No description

previewForRevision(int $id, int $revisionId)

No description

void
hydrateMultiSelect(TwillModelContract $object, array $fields, string $relationship, TwillModelContract $model = null, string|null $customHydratedRelationship = null)

No description

void
hydrateBrowser(TwillModelContract $object, array $fields, string $relationship, string $positionAttribute = 'position', TwillModelContract|string $model = null)

No description

void
hydrateOrderedBelongsToMany(TwillModelContract $object, array $fields, string $relationship, string $positionAttribute = 'position', TwillModelContract|string $model = null)

No description

void
hydrateRelatedBrowsers(TwillModelContract $object, array $fields)

No description

void
hydrateRepeater(TwillModelContract $object, array $fields, string $relationship, string $model, string|null $repeaterName = null)

No description

int
getCountForMine()

No description

int|bool
getCountByStatusSlugHandleRevisions(string $slug)

No description

Details

TwillModelContract hydrateHandleRevisions(TwillModelContract $object, array $fields)

No description

Parameters

TwillModelContract $object
array $fields

Return Value

TwillModelContract

array afterSaveOriginalDataHandleRevisions(TwillModelContract $object, array $fields)

No description

Parameters

TwillModelContract $object
array $fields

Return Value

array

array createRevisionIfNeeded(TwillModelContract $object, array $fields)

No description

Parameters

TwillModelContract $object
array $fields

Return Value

array

TwillModelContract preview(int $id, array $fields)

No description

Parameters

int $id
array $fields

Return Value

TwillModelContract

protected TwillModelContract hydrateObject(TwillModelContract $object, array $fields)

No description

Parameters

TwillModelContract $object
array $fields

Return Value

TwillModelContract

TwillModelContract previewForRevision(int $id, int $revisionId)

No description

Parameters

int $id
int $revisionId

Return Value

TwillModelContract

void hydrateMultiSelect(TwillModelContract $object, array $fields, string $relationship, TwillModelContract $model = null, string|null $customHydratedRelationship = null)

No description

Parameters

TwillModelContract $object
array $fields
string $relationship
TwillModelContract $model
string|null $customHydratedRelationship

Return Value

void

void hydrateBrowser(TwillModelContract $object, array $fields, string $relationship, string $positionAttribute = 'position', TwillModelContract|string $model = null)

No description

Parameters

TwillModelContract $object
array $fields
string $relationship
string $positionAttribute
TwillModelContract|string $model

Return Value

void

void hydrateOrderedBelongsToMany(TwillModelContract $object, array $fields, string $relationship, string $positionAttribute = 'position', TwillModelContract|string $model = null)

No description

Parameters

TwillModelContract $object
array $fields
string $relationship
string $positionAttribute
TwillModelContract|string $model

Return Value

void

void hydrateRelatedBrowsers(TwillModelContract $object, array $fields)

No description

Parameters

TwillModelContract $object
array $fields

Return Value

void

void hydrateRepeater(TwillModelContract $object, array $fields, string $relationship, string $model, string|null $repeaterName = null)

No description

Parameters

TwillModelContract $object
array $fields
string $relationship
string $model
string|null $repeaterName

Return Value

void

int getCountForMine()

No description

Return Value

int

int|bool getCountByStatusSlugHandleRevisions(string $slug)

No description

Parameters

string $slug

Return Value

int|bool