Class TActiveRecordChangeEventParameter
TActiveRecordChangeEventParameter class
TActiveRecordChangeEventParameter encapsulates the parameter data for ActiveRecord change commit events that are broadcasted. The following change events may be raise: TActiveRecord::OnInsert, TActiveRecord::OnUpdate and TActiveRecord::OnDelete. The IsValid parameter can be set to false to prevent the requested change event to be performed.
| Method Summary |
|
boolean
|
|
|
void
|
|
| Methods Inherited From TComponent |
|
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
| Method Details |
getIsValid
| public boolean getIsValid |
() |
| Output |
|
boolean
| whether the event should be performed. |
| Exception |
|
setIsValid
| public void setIsValid |
(boolean $value ) |
| Input |
| boolean | $value | set to false to prevent the event. |
| Output |
| Exception |
|
|