protected function _columnCast($field, $name, $data, $options)
    {
        $column = $this->_columns[$name];
        if (!empty($column['setter'])) {
            $data = $column['setter']($options['parent'], $data, $name);
        }
        if ($column['array'] && $field) {
            return $this->_castArray($name, $data, $options);
        }
        return $this->convert('cast', $column['type'], $data, $column/*, []*/);
    }
protected function _columnCast($field, $name, $data, $options)
    {
        $column = $this->_columns[$name];
        if (!empty($column['setter'])) {
            $data = $column['setter']($options['parent'], $data, $name);
        }
        if ($column['array'] && $field) {
            return $this->_castArray($name, $data, $options);
        }
        return $this->convert('cast', $column['type'], $data, $column/*, []*/);
    }
protected function _columnCast ( $ field , $ name , $ data , $ options ) { $ column = $ this -> _columns [ $ name ] ; if ( ! empty ( $ column [ 'setter' ] ) ) { $ data = $ column [ 'setter' ] ( $ options [ 'parent' ] , $ data , $ name ) ; } if ( $ column [ 'array' ] && $ field ) { return $ this -> _castArray ( $ name , $ data , $ options ) ; } return $ this -> convert ( 'cast' , $ column [ 'type' ] , $ data , $ column /*, []*/ ) ; }
Casting helper for columns.

@param  string $field      The field name to cast.
@param  string $name       The full field name to cast.
@param  array  $data       Some data to cast.
@param  array  $options    Options for the casting.
@return mixed              The casted data.
Casting helper for columns .