public function getSize($approx = false)
    {
        if (!($bytes = $this->getBytes($approx))) {
            return 0;
        }

        $localeinfo = Horde_Nls::getLocaleInfo();

        // TODO: Workaround broken number_format() prior to PHP 5.4.0.
        return str_replace(
            array('X', 'Y'),
            array($localeinfo['decimal_point'], $localeinfo['thousands_sep']),
            number_format(ceil($bytes / 1024), 0, 'X', 'Y')
        );
    }
public function getSize($approx = false)
    {
        if (!($bytes = $this->getBytes($approx))) {
            return 0;
        }

        $localeinfo = Horde_Nls::getLocaleInfo();

        // TODO: Workaround broken number_format() prior to PHP 5.4.0.
        return str_replace(
            array('X', 'Y'),
            array($localeinfo['decimal_point'], $localeinfo['thousands_sep']),
            number_format(ceil($bytes / 1024), 0, 'X', 'Y')
        );
    }
public function getSize ( $ approx = false ) { if ( ! ( $ bytes = $ this -> getBytes ( $ approx ) ) ) { return 0 ; } $ localeinfo = Horde_Nls :: getLocaleInfo ( ) ; // TODO: Workaround broken number_format() prior to PHP 5.4.0. return str_replace ( array ( 'X' , 'Y' ) , array ( $ localeinfo [ 'decimal_point' ] , $ localeinfo [ 'thousands_sep' ] ) , number_format ( ceil ( $ bytes / 1024 ) , 0 , 'X' , 'Y' ) ) ; }
Output the size of this MIME part in KB.

@todo Remove $approx parameter.

@param boolean $approx  If true, determines an approximate size for
parts consisting of base64 encoded data.

@return string  Size of the part in KB.
Output the size of this MIME part in KB .