protected function formatValue($value, $format, $row = null)
    {
        $formatValue = Utility::get($format, "formatValue", null);

        if (is_string($formatValue)) {
            eval('$fv="' . str_replace('@value', '$value', $formatValue) . '";');
            return $fv;
        } else if (is_callable($formatValue)) {
            return $formatValue($value, $row);
        } else {
            return Utility::format($value, $format);
        }
    }
protected function formatValue($value, $format, $row = null)
    {
        $formatValue = Utility::get($format, "formatValue", null);

        if (is_string($formatValue)) {
            eval('$fv="' . str_replace('@value', '$value', $formatValue) . '";');
            return $fv;
        } else if (is_callable($formatValue)) {
            return $formatValue($value, $row);
        } else {
            return Utility::format($value, $format);
        }
    }
protected function formatValue ( $ value , $ format , $ row = null ) { $ formatValue = Utility :: get ( $ format , "formatValue" , null ) ; if ( is_string ( $ formatValue ) ) { eval ( '$fv="' . str_replace ( '@value' , '$value' , $ formatValue ) . '";' ) ; return $ fv ; } else if ( is_callable ( $ formatValue ) ) { return $ formatValue ( $ value , $ row ) ; } else { return Utility :: format ( $ value , $ format ) ; } }
Return the formatted value

@param mixed $value  The value needed to be formatted
@param array $format The format
@param array $row    The row containing this value

@return null
Return the formatted value