HandleRevisions
trait HandleRevisions (View source)
Methods
array
void
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
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
array
beforeSaveHandleRevisions(Model $object, array $fields)
No description
void
createRevisionIfNeeded(Model $object, array $fields)
No description
Model
preview(int $id, array $fields)
No description
Model
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