function eZGZIPCompressionHandler() { if ( eZGZIPZLIBCompressionHandler::isAvailable() ) $handler = new eZGZIPZLIBCompressionHandler(); else if ( eZGZIPShellCompressionHandler::isAvailable() ) $handler = new eZGZIPShellCompressionHandler(); else $handler = new eZNoCompressionHandler(); $this->eZForwardCompressionHandler( $handler, 'GZIP', 'gzip' ); }
function __construct() { if (eZGZIPZLIBCompressionHandler::isAvailable()) { $handler = new eZGZIPZLIBCompressionHandler(); } else { if (eZGZIPShellCompressionHandler::isAvailable()) { $handler = new eZGZIPShellCompressionHandler(); } else { $handler = new eZNoCompressionHandler(); } } parent::__construct($handler, 'GZIP', 'gzip'); }