library/Garp/Model/Behavior/Timestampable.php
protected function _setup($config) {
        if (empty($config['createdField'])) {
            $config['createdField'] = 'created';
        }
        if (empty($config['modifiedField'])) {
            $config['modifiedField'] = 'modified';
        }
        $this->_fields = $config;
    }
protected function _setup($config) {
        if (empty($config['createdField'])) {
            $config['createdField'] = 'created';
        }
        if (empty($config['modifiedField'])) {
            $config['modifiedField'] = 'modified';
        }
        $this->_fields = $config;
    }
protected function _setup ( $ config ) { if ( empty ( $ config [ 'createdField' ] ) ) { $ config [ 'createdField' ] = 'created' ; } if ( empty ( $ config [ 'modifiedField' ] ) ) { $ config [ 'modifiedField' ] = 'modified' ; } $ this -> _fields = $ config ; }
Make sure the config array is at least filled with some default values to work with.
@param Array $config Configuration values
@return Void
Make sure the config array is at least filled with some default values to work with .