Operation

Location

epi-cms/contentediting/Operation

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

changes

Array of changes associated with the current operation.

inProgress

Flag indicating if there is an operation in progress.

Methods

public method abort ( )

Ends the current operation and raises an abort event with the accumulated data.


public method begin ( )

Begins a new operation. If there is an operation already is progress this does nothing.


public method end ( )

Ends the current operation and raises a commit event with the accumulated data.


public method save ( data )

Saves the data to the current active operation otherwise raises a commit event with the data.

Parameters