SilverStripe\Snapshots\SnapshotPublishable
Class SnapshotPublishable
Synopsis
class SnapshotPublishable
extends RecursivePublishable
{
- // members
- private static array $snapshot_relation_tracking = ;
- private static array $relationDiffs = ;
- // methods
- public static int|null get_published_version_number()
- public static DataObject get_at_snapshot()
- public static void get_at_last_snapshot()
- public static DataObject|null get_last_snapshot_item()
- public static DataList getSnapshots()
- public DataList getRelevantSnapshots()
- public DataList getSnapshotsSinceVersion()
- public DataList getSnapshotsSinceLastPublish()
- protected array getSnapshotsBetweenVersionsFilters()
- public boolean hasOwnedModifications()
- public int getPublishableItemsCount()
- public ArrayList getPublishableObjects()
- public array getRelationTracking()
- public DataObject getAtSnapshot()
- public DataObject|null getAtLastSnapshot()
- public void onAfterRevertToLive()
- public SnapshotItem|null getPreviousSnapshotItem()
- public mixed atPreviousSnapshot()
- public DataObject|null getPreviousSnapshotVersion()
- public bool isModifiedSinceLastSnapshot()
- public array getRelationDiffs()
- public bool hasRelationChanges()
- public DataObject|null getPreviousVersion()
- protected SQLSelect publishableItemsQuery()
- protected array getChangedOwnership()
- public void reconcileOwnershipChanges()
- public array getIntermediaryObjects()
- public DataList getActivityBetweenVersions()
- public ArrayList getActivityFeed()
- // Inherited methods from SnapshotHasher
- public static string hashForSnapshot()
- public static string hashObjectForSnapshot()
- public static bool hashSnapshotCompare()
Hierarchy
Tasks
Line | Task |
---|---|
434+ | Memoise / cache |
Members
private
- $relationDiffs — array
- $snapshot_relation_tracking — array
Methods
protected
- getChangedOwnership()
- getSnapshotsBetweenVersionsFilters() — Generate ORM filters for snapshots between 2 versions If $max is null, includes everything unpublished too
- publishableItemsQuery()
public
- atPreviousSnapshot()
- getActivityBetweenVersions()
- getActivityFeed() — Returns a list of ActivityEntry ordered by creation datetime
- getAtLastSnapshot()
- getAtSnapshot()
- getIntermediaryObjects()
- getPreviousSnapshotItem()
- getPreviousSnapshotVersion()
- getPreviousVersion()
- getPublishableItemsCount()
- getPublishableObjects()
- getRelationDiffs()
- getRelationTracking()
- getRelevantSnapshots()
- getSnapshots()
- getSnapshotsSinceLastPublish()
- getSnapshotsSinceVersion()
- get_at_last_snapshot()
- get_at_snapshot()
- get_last_snapshot_item()
- get_published_version_number() — A more resillient wrapper for the Versioned function that holds up against unstaged versioned implementations
- hasOwnedModifications()
- hasRelationChanges()
- isModifiedSinceLastSnapshot()
- onAfterRevertToLive() — Tidy up all the irrelevant snapshot records now that the changes have been reverted.
- reconcileOwnershipChanges() — If ownership has changed, relocate the activity to the new owner.
Inherited from SilverStripe\Snapshots\SnapshotHasher
public
- hashForSnapshot() — Generates a hash for versioned snapshots
- hashObjectForSnapshot() — Generates a hash for the object for versioned snapshots
- hashSnapshotCompare()