class PreUpdateEventArgs extends LifecycleEventArgs (View source)

Class that holds event arguments for a preUpdate event.

Methods

getDocument()

No description

getDocumentManager()

No description

__construct(object $document, DocumentManager $dm, array $changeSet)

No description

getDocumentChangeSet()

No description

hasChangedField(string $field)

No description

mixed
getOldValue(string $field)

Gets the old value of the changeset of the changed field.

mixed
getNewValue(string $field)

Gets the new value of the changeset of the changed field.

setNewValue(string $field, $value)

Sets the new value of this field.

Details

getDocument()

getDocumentManager()

__construct(object $document, DocumentManager $dm, array $changeSet)

Parameters

object $document
DocumentManager $dm
array $changeSet

getDocumentChangeSet()

hasChangedField(string $field)

Parameters

string $field

mixed getOldValue(string $field)

Gets the old value of the changeset of the changed field.

Parameters

string $field

Return Value

mixed

mixed getNewValue(string $field)

Gets the new value of the changeset of the changed field.

Parameters

string $field

Return Value

mixed

setNewValue(string $field, $value)

Sets the new value of this field.

Parameters

string $field
$value