lib/HTTP/Encoder.php
public static function output($content, $compressionLevel = null)
    {
        if (null === $compressionLevel) {
            $compressionLevel = self::$compressionLevel;
        }
        $he = new HTTP_Encoder(array('content' => $content));
        $ret = $he->encode($compressionLevel);
        $he->sendAll();

        return $ret;
    }
public static function output($content, $compressionLevel = null)
    {
        if (null === $compressionLevel) {
            $compressionLevel = self::$compressionLevel;
        }
        $he = new HTTP_Encoder(array('content' => $content));
        $ret = $he->encode($compressionLevel);
        $he->sendAll();

        return $ret;
    }
public static function output ( $ content , $ compressionLevel = null ) { if ( null === $ compressionLevel ) { $ compressionLevel = self :: $ compressionLevel ; } $ he = new HTTP_Encoder ( array ( 'content' => $ content ) ) ; $ ret = $ he -> encode ( $ compressionLevel ) ; $ he -> sendAll ( ) ; return $ ret ; }
Encode and send appropriate headers and content

This is a convenience method for common use of the class

@param string $content

@param int $compressionLevel given to zlib functions. If not given, the
class default will be used.

@return bool success true if the content was actually compressed
Encode and send appropriate headers and content