Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

ezgzipcompressionhandler.php
Go to the documentation of this file.
1 <?php
21 class eZGZIPCompressionHandler extends eZForwardCompressionHandler
22 {
26 public function __construct()
27 {
28 if ( eZGZIPZLIBCompressionHandler::isAvailable() )
29 $handler = new eZGZIPZLIBCompressionHandler();
30 else if ( eZGZIPShellCompressionHandler::isAvailable() )
31 $handler = new eZGZIPShellCompressionHandler();
32 else
33 $handler = new eZNoCompressionHandler();
34 parent::__construct( $handler, 'GZIP', 'gzip' );
35 }
36
40 function setCompressionLevel( $level )
41 {
42 $handler =& $this->handler();
43 if ( method_exists( $handler, 'setCompressionLevel' ) )
44 $handler->setCompressionLevel( $level );
45 }
46
50 function compressionLevel()
51 {
52 $handler =& $this->handler();
53 if ( method_exists( $handler, 'compressionLevel' ) )
54 return $handler->compressionLevel();
55 return false;
56 }
57 }
58
59 ?>
eZForwardCompressionHandler
Handles files compressed with gzip.
Definition: ezforwardcompressionhandler.php:20
eZGZIPCompressionHandler
Handles files compressed with gzip.
Definition: ezgzipcompressionhandler.php:22
eZGZIPCompressionHandler\__construct
__construct()
Definition: ezgzipcompressionhandler.php:26
eZGZIPCompressionHandler\setCompressionLevel
setCompressionLevel( $level)
Definition: ezgzipcompressionhandler.php:40
eZGZIPCompressionHandler\compressionLevel
compressionLevel()
Definition: ezgzipcompressionhandler.php:50
eZGZIPShellCompressionHandler
Handles files compressed with gzip using the shell commands.
Definition: ezgzipshellcompressionhandler.php:22
eZGZIPShellCompressionHandler\isAvailable
static isAvailable()
Definition: ezgzipshellcompressionhandler.php:52
eZGZIPZLIBCompressionHandler
Handles files compressed with gzip using the zlib extension.
Definition: ezgzipzlibcompressionhandler.php:20
eZGZIPZLIBCompressionHandler\isAvailable
static isAvailable()
Definition: ezgzipzlibcompressionhandler.php:51
eZNoCompressionHandler
Does no compression at all.
Definition: eznocompressionhandler.php:18
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.