VersionableModelInterface

Interface for a versionable model.

since

6.0.0

package

Joomla CMS

Methods

deleteHistory

Method to delete the history for an item.

deleteHistory( typeAlias,  id) : 
since

6.0.0

Arguments

typeAlias

stringTypealias of the content type

id

intID of the content item to delete

Response

booltrue on success, otherwise false.

loadHistory

Method to load a row for editing from the version history table.

loadHistory( historyId) : 
since

6.0.0

Arguments

historyId

intKey to the version history table.

Response

boolFalse on failure or error, true otherwise.

saveHistory

Method to save the history.

saveHistory(mixed||string|int data,  context) : 
since

6.0.0

Arguments

data

array<string|int, mixed>The form data.

context

stringThe model context.

Response

boolTrue on success, False on error.