HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
CSerializeBehavior Class Reference
Inheritance diagram for CSerializeBehavior:

Public Member Functions

 beforeSave ($event)
 afterSave ($event)
 afterFind ($event)

Public Attributes

 $serialAttributes = array()

Detailed Description

CSerializeBehavior class file.

Author
Kenrick Buchanan nsbuc.nosp@m.ky@g.nosp@m.mail..nosp@m.com http://www.yiiframework.com/license/ CSerializeBehavior allows a model to specify some attributes to be arrays and serialized upon save and unserialized after a Find() function is called on the model.
 public function behaviors()
  {
      return array(
          'CSerializeBehavior' => array(
              'class' => 'application.behaviors.CSerializeBehavior',
              'serialAttributes' => array('validator_options'),
          )
      );
  }
 

CSerializeBehavior class file.

Author
samokspv samok.nosp@m.psv@.nosp@m.yande.nosp@m.x.ru http://www.yiiframework.com/license/

Definition at line 26 of file CSerializeBehavior.php.

Member Function Documentation

CSerializeBehavior::afterFind (   $event)

Reimplemented in CBase64SerializeBehavior, and CBase64Behavior.

Definition at line 84 of file CSerializeBehavior.php.

CSerializeBehavior::afterSave (   $event)

convert the saved as a serialized string back into an array, cause thats how we want to use it anyways ya know?

Reimplemented in CBase64SerializeBehavior, and CBase64Behavior.

Definition at line 65 of file CSerializeBehavior.php.

CSerializeBehavior::beforeSave (   $event)

Responds to CModel::onBeforeSave event. Sets the values of the creation or modified attributes as configured.

Parameters
CModelEventevent parameter

Reimplemented in CBase64SerializeBehavior, and CBase64Behavior.

Definition at line 39 of file CSerializeBehavior.php.

Member Data Documentation

CSerializeBehavior::$serialAttributes = array()

Definition at line 31 of file CSerializeBehavior.php.


The documentation for this class was generated from the following files: