\ChangesetService
A singletone service that manages changesets within the system.
Use methods on this object to create and retrieve changesets, add new items to the current user's changeset,
move items between changesets, and submit changesets.
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
Synopsis
class ChangesetService
{
- // methods
- public createChangeset()
- public void getChangeset()
- public ContentChangeset getChangesetForUser()
- public void getAvailableChangesets()
- public void getChangesetForContent()
Tasks
Line | Task |
---|---|
90+ | This should be expanded later to allow users to have permission to some specific changesets (ie when dealing with workflow) |
Methods
public
- createChangeset() — Create a new changeset for the given member (the current user is used as the default)
- getAvailableChangesets() — Gets all the changesets that this user has access to.
- getChangeset() — Gets a changeset from the DB, if the current user has access to it
- getChangesetForContent() — Gets the current changeset for a given content item
- getChangesetForUser() — Gets the current changeset for this user if it exists