trait HandleRevisions (View source)

Methods

hydrateHandleRevisions(Model $object, array $fields)

No description

array
beforeSaveHandleRevisions(Model $object, array $fields)

No description

void
createRevisionIfNeeded(Model $object, array $fields)

No description

preview(int $id, array $fields)

No description

hydrateObject(Model $object, array $fields)

No description

previewForRevision(int $id, int $revisionId)

No description

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

No description

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

No description

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

No description

void
hydrateRelatedBrowsers(Model $object, array $fields)

No description

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

No description

int
getCountForMine()

No description

int|bool
getCountByStatusSlugHandleRevisions(string $slug)

No description

Details

Model hydrateHandleRevisions(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

Model

array beforeSaveHandleRevisions(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

array

void createRevisionIfNeeded(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

void

Model preview(int $id, array $fields)

No description

Parameters

int $id
array $fields

Return Value

Model

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

No description

Parameters

Model $object
array $fields

Return Value

Model

Model previewForRevision(int $id, int $revisionId)

No description

Parameters

int $id
int $revisionId

Return Value

Model

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

No description

Parameters

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

Return Value

void

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

No description

Parameters

Model $object
array $fields
string $relationship
string $positionAttribute
Model|null $model

Return Value

null

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

No description

Parameters

Model $object
array $fields
string $relationship
string $positionAttribute
Model|null $model

Return Value

void

void hydrateRelatedBrowsers(Model $object, array $fields)

No description

Parameters

Model $object
array $fields

Return Value

void

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

No description

Parameters

Model $object
array $fields
string $relationship
Model $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