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

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

CBase64Behavior class file.

Author
samokspv samok.nosp@m.psv@.nosp@m.yande.nosp@m.x.ru http://www.yiiframework.com/license/ CBase64Behavior allows a model to specify some attributes to be string and base64_encode upon save and base64_decode after a Find() function is called on the model.
 public function behaviors()
  {
      return array(
          'CBase64Behavior' => array(
              'class' => 'application.behaviors.CBase64Behavior',
              'serialAttributes' => array('validator_options'),
          )
      );
  }
 

Definition at line 26 of file CBase64Behavior.php.

Member Function Documentation

CBase64Behavior::afterFind (   $event)

{}

Reimplemented from CSerializeBehavior.

Definition at line 64 of file CBase64Behavior.php.

CBase64Behavior::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 44 of file CBase64Behavior.php.

CBase64Behavior::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 31 of file CBase64Behavior.php.


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