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

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from CSerializeBehavior
 $serialAttributes = array()

Detailed Description

CBase64SerializeBehavior class file.

Author
Kenrick Buchanan nsbuc.nosp@m.ky@g.nosp@m.mail..nosp@m.com http://www.yiiframework.com/license/ CBase64SerializeBehavior 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(
          'CBase64SerializeBehavior' => array(
              'class' => 'application.behaviors.CBase64SerializeBehavior',
              'serialAttributes' => array('validator_options'),
          )
      );
  }
 

Definition at line 26 of file CBase64SerializeBehavior.php.

Member Function Documentation

CBase64SerializeBehavior::afterFind (   $event)

Reimplemented from CSerializeBehavior.

Definition at line 78 of file CBase64SerializeBehavior.php.

CBase64SerializeBehavior::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 from CSerializeBehavior.

Definition at line 60 of file CBase64SerializeBehavior.php.

CBase64SerializeBehavior::beforeSave (   $event)

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

Parameters
CModelEventevent parameter

Reimplemented from CSerializeBehavior.

Definition at line 34 of file CBase64SerializeBehavior.php.


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