Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • CSaveRelationsBehavior
  • OwnerBehavior
  • Profile
  • ProfileField
  • TimestampBehavior
  • UActiveRecord
  • User

Class CSaveRelationsBehavior

CActiveRecordBehavior is the base class for behaviors that can be attached to CActiveRecord. Compared with CModelBehavior, CActiveRecordBehavior attaches to more events that are only defined by CActiveRecord.

CComponent
Extended by CBehavior implements IBehavior
Extended by CModelBehavior
Extended by CActiveRecordBehavior
Extended by CSaveRelationsBehavior
Package: system\db\ar
Author: Qiang Xue <qiang.xue@gmail.com>
Version: $Id$
Located at phundament/gii-template-collection/components/CSaveRelationsBehavior.php

Methods summary

public
# setRelationRecords( mixed $relation, mixed $data = null, mixed $merge = false )
public
# addSaveRelation( mixed $relation, mixed $message = null )
public
# removeSaveRelation( mixed $relation )
public
# setRelationScenario( mixed $relation, mixed $scenario )
public
# setSaveRelationMessage( mixed $relation, mixed $message )
public
# beforeValidate( CModelEvent $event )

Responds to CModel::onBeforeValidate event. Overrides this method if you want to handle the corresponding event of the owner. You may set CModelEvent::isValid to be false to quit the validation process.

Responds to CModel::onBeforeValidate event. Overrides this method if you want to handle the corresponding event of the owner. You may set CModelEvent::isValid to be false to quit the validation process.

Parameters

$event
CModelEvent
$event event parameter

Overrides

CModelBehavior::beforeValidate
public
# beforeSave( CModelEvent $event )

Responds to CActiveRecord::onBeforeSave event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner. You may set CModelEvent::isValid to be false to quit the saving process.

Responds to CActiveRecord::onBeforeSave event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner. You may set CModelEvent::isValid to be false to quit the saving process.

Parameters

$event
CModelEvent
$event event parameter

Overrides

CActiveRecordBehavior::beforeSave
public
# afterSave( CModelEvent $event )

Responds to CActiveRecord::onAfterSave event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner.

Responds to CActiveRecord::onAfterSave event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner.

Parameters

$event
CModelEvent
$event event parameter

Overrides

CActiveRecordBehavior::afterSave
public
# beforeDelete( CEvent $event )

Responds to CActiveRecord::onBeforeDelete event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner. You may set CModelEvent::isValid to be false to quit the deletion process.

Responds to CActiveRecord::onBeforeDelete event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner. You may set CModelEvent::isValid to be false to quit the deletion process.

Parameters

$event
CEvent
$event event parameter

Overrides

CActiveRecordBehavior::beforeDelete
public
# afterDelete( CEvent $event )

Responds to CActiveRecord::onAfterDelete event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner.

Responds to CActiveRecord::onAfterDelete event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner.

Parameters

$event
CEvent
$event event parameter

Overrides

CActiveRecordBehavior::afterDelete

Methods inherited from CActiveRecordBehavior

afterFind(), beforeFind(), events()

Methods inherited from CModelBehavior

afterConstruct(), afterValidate()

Methods inherited from CBehavior

attach(), detach(), getEnabled(), getOwner(), setEnabled()

Methods inherited from CComponent

__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()

Magic methods summary

Properties summary

public array $relations
#
public boolean $transactional
#
public boolean $hasError
#
public boolean $deleteRelatedRecords
#

Magic properties inherited from CActiveRecordBehavior

$owner

Magic properties inherited from CBehavior

$enabled

Phundament App Class Reference API documentation generated by ApiGen 2.8.0