SilverStripe\Versioned\ChangeSetItem
A single line in a changeset
Synopsis
class ChangeSetItem
extends DataObject
implements
Thumbnail
{
- // constants
- const EXPLICITLY = 'explicitly';
- const IMPLICITLY = 'implicitly';
- const CHANGE_DELETED = 'deleted';
- const CHANGE_MODIFIED = 'modified';
- const CHANGE_CREATED = 'created';
- const CHANGE_NONE = 'none';
- // members
- private static string $table_name = 'ChangeSetItem';
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $belongs_many_many = ;
- private static array $indexes = ;
- // methods
- public void onBeforeWrite()
- public void getTitle()
- public string ThumbnailURL()
- public string getChangeType()
- protected DataObject|Versioned|RecursivePublishable getObjectInStage()
- protected DataObject|Versioned getObjectLatestVersion()
- public SS_List findReferenced()
- public void publish()
- public void unlinkDisownedObjects()
- public void revert()
- public void canView()
- public void canEdit()
- public void canCreate()
- public void canDelete()
- public bool canRevert()
- public bool canPublish()
- public bool hasChange()
- public bool can()
- public static DataList get_for_object()
- public static DataList get_for_object_by_id()
- public array getPreviewLinks()
- public string CMSEditLink()
- public bool isVersioned()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Assets\Thumbnail
Constants
Name | Value |
---|---|
EXPLICITLY | 'explicitly' |
IMPLICITLY | 'implicitly' |
CHANGE_DELETED | 'deleted' |
CHANGE_MODIFIED | 'modified' |
CHANGE_CREATED | 'created' |
CHANGE_NONE | 'none' |
Members
private
- $belongs_many_many
- $db
- $has_one
- $indexes
- $many_many
- $table_name
Methods
protected
- getObjectInStage() — Find version of this object in the given stage.
- getObjectLatestVersion() — Find latest version of this object
public
- CMSEditLink() — Get edit link for this item
- ThumbnailURL() — Get a thumbnail for this object
- can() — Default permissions for this ChangeSetItem
- canCreate()
- canDelete()
- canEdit()
- canPublish() — Check if this ChangeSetItem can be published
- canRevert() — Check if the BeforeVersion of this changeset can be restored to draft
- canView()
- findReferenced() — Get all implicit objects for this change
- getChangeType() — Get the type of change: none, created, deleted, modified, manymany
- getPreviewLinks() — Gets the list of modes this record can be previewed in.
- getTitle()
- get_for_object() — Get the ChangeSetItems that reference a passed DataObject
- get_for_object_by_id() — Get the ChangeSetItems that reference a passed DataObject
- hasChange() — Determine if this item has changes
- isVersioned() — Check if the object attached to this changesetitem is versionable
- onBeforeWrite()
- publish() — Publish this item, then close it.
- revert() — Reverts this item, then close it.
- unlinkDisownedObjects() — Once this item (and all owned objects) are published, unlink all disowned objects