Swat/SwatMoneyEntry.php
protected function getDisplayValue($value)
    {
        // if the value is valid, format accordingly
        if (!$this->hasMessage() && is_numeric($value)) {
            $value = SwatI18NLocale::get($this->locale)->formatCurrency(
                $value,
                false,
                array('fractional_digits' => $this->decimal_places)
            );
        }

        return $value;
    }
protected function getDisplayValue($value)
    {
        // if the value is valid, format accordingly
        if (!$this->hasMessage() && is_numeric($value)) {
            $value = SwatI18NLocale::get($this->locale)->formatCurrency(
                $value,
                false,
                array('fractional_digits' => $this->decimal_places)
            );
        }

        return $value;
    }
protected function getDisplayValue ( $ value ) { // if the value is valid, format accordingly if ( ! $ this -> hasMessage ( ) && is_numeric ( $ value ) ) { $ value = SwatI18NLocale :: get ( $ this -> locale ) -> formatCurrency ( $ value , false , array ( 'fractional_digits' => $ this -> decimal_places ) ) ; } return $ value ; }
Formats a monetary value to display

@param string $value the value to format for display.

@return string the formatted value.
Formats a monetary value to display