formatbehavior FormatBehavior and AutoTimeStamp

  1. Documentation
  2. Change Log

A component to manage the formatting in the input / output data as a CActiveRecordBehavior. Opportunity makes the job of AutoTimeStamp.

Documentation

Requirements
  • Yii 1.1 or above
Installation
  • Extract the release file under protected/components
Usage

See the following code example:

public function behaviors() {
        return array(
                'FormatBehaviorAutoTimeStamp' => array(
                        'class' => 'application.components.FormatBehavior',
                        'typeFormater' => 'dateTime',
                        'useTimeStamp'=>true,
                        'autoTimeStamp'=>true,
                ),
                'FormatBehaviorMoney' => array(
                        'class' => 'application.components.FormatBehavior',
                        'typeFormater' => 'money',
                        'collumns'=>array('price', 'freight')
                ),
                'FormatBehaviorData' => array(
                        'class' => 'application.components.FormatBehavior',
                        'typeFormater' => 'datetime',
                        'collumns'=>array('delivery')
                ),
        );
    }

Change Log

July 19, 2010
  • Initial release.
0 0
2 followers
530 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Tags:
Developed by: Rafael Garcia
Created on: Jul 19, 2010
Last updated: 14 years ago

Downloads

show all