## Class TActiveRecordChangeEventParameter

Description

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.

- since: 3.1.2
- version: $Id: TActiveRecord.php 2649 2009-05-11 07:44:55Z godzilla80@gmx.net $
- author: Wei Zhuo<weizhuo@gmail.com>

Located in /Data/ActiveRecord/TActiveRecord.php (line 1045)

    TComponent
       |
       --TEventParameter
          |
          --TActiveRecordChangeEventParameter

Method Summary
boolean getIsValid ()
void setIsValid (boolean $value)
Methods
getIsValid (line 1052)

- return: whether the event should be performed.
- access: public

boolean getIsValid ()
setIsValid (line 1060)

- access: public

void setIsValid (boolean $value)

- boolean $value: set to false to prevent the event.

#### Inherited 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()

Documentation generated on Mon, 22 Feb 2010 12:16:31 +0000 by phpDocumentor 1.3.0RC4