EntryRevisionsVariable

Type
Class
Namespace
Craft
Inherits
Craft\EntryRevisionsVariable
Since
1.0

Class EntryRevisionsVariable

See also http://craftcms.com

View source

Public Methods

MethodDescription
getDraftById()Returns an entry draft by its offset.
getDraftByOffset()Returns an entry draft by its offset.
getDraftsByEntryId()Returns entry drafts by an entry ID.
getEditableDraftsByEntryId()Returns the drafts of a given entry that are editable by the current user.
getVersionById()Returns an entry version by its ID.
getVersionByOffset()Returns an entry version by its offset.
getVersionsByEntryId()Returns entry versions by an entry ID.

getDraftById()

Returns an entry draft by its offset.

View source

Arguments

Returns

Craft\EntryDraftModel, null

Signature

public Craft\EntryDraftModel, null getDraftById ( $draftId )

getDraftByOffset()

Returns an entry draft by its offset.

View source

Arguments

Returns

Craft\EntryDraftModel, null

Signature

public Craft\EntryDraftModel, null getDraftByOffset ( $entryId, $offset = 0 )

getDraftsByEntryId()

Returns entry drafts by an entry ID.

View source

Arguments

Returns

array

Signature

public array getDraftsByEntryId ( $entryId, $localeId = null )

getEditableDraftsByEntryId()

Returns the drafts of a given entry that are editable by the current user.

View source

Arguments

Returns

array

Signature

public array getEditableDraftsByEntryId ( $entryId, $localeId = null )

getVersionById()

Returns an entry version by its ID.

View source

Arguments

Returns

Craft\EntryVersionModel, null

Signature

public Craft\EntryVersionModel, null getVersionById ( $versionId )

getVersionByOffset()

Returns an entry version by its offset.

View source

Arguments

Returns

Craft\EntryVersionModel, null

Signature

public Craft\EntryVersionModel, null getVersionByOffset ( $entryId, $offset = 0 )

getVersionsByEntryId()

Returns entry versions by an entry ID.

View source

Arguments

Returns

array

Signature

public array getVersionsByEntryId ( $entryId, $localeId )