X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fcompressor%2Fclass_GzipCompressor.php;h=9a4489b19276b8aaae665092b1a3958b7ab005a5;hb=b44e5e7347f9a1dbd49b5b47d506a4f6526caf2f;hp=208e12bbbfb003dc20cff88cdd00b08047e5acf4;hpb=b912eda46059527fc0475e043944c3ebff47fbcd;p=shipsimu.git
diff --git a/inc/classes/main/compressor/class_GzipCompressor.php b/inc/classes/main/compressor/class_GzipCompressor.php
index 208e12b..9a4489b 100644
--- a/inc/classes/main/compressor/class_GzipCompressor.php
+++ b/inc/classes/main/compressor/class_GzipCompressor.php
@@ -31,16 +31,11 @@ class GzipCompressor extends BaseFrameworkSystem implements Compressor {
// Call parent constructor!
parent::__construct(__CLASS__);
- // Debug message
- if (((defined('DEBUG_COMPRESSOR')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.
\n",
- $this->__toString()
- ));
-
// Set description
- $this->setObjectDescription("GZIP-Kompressor");
+ $this->setObjectDescription("GZIP compressor");
// Create an unique ID
- $this->createUniqueID();
+ $this->generateUniqueId();
}
/**
@@ -53,19 +48,9 @@ class GzipCompressor extends BaseFrameworkSystem implements Compressor {
if ((function_exists('gzcompress')) && (function_exists('gzuncompress'))) {
// Compressor can maybe be used
$cInstance = new GzipCompressor();
-
- // Debug message
- if ((defined('DEBUG_COMPRESSOR')) || (defined('DEBUG_ALL'))) $cInstance->getDebugInstance()->output(sprintf("[%s:] GZIP-Kompression wird verwendet.
\n",
- $cInstance->__toString()
- ));
} else {
// Routines not found!
$cInstance = null;
-
- // Debug message
- if ((defined('DEBUG_COMPRESSOR')) || (defined('DEBUG_ALL'))) $cInstance->getDebugInstance()->output(sprintf("[%s:] GZIP-Kompressionsroutinen nicht gefunden.
\n",
- $cInstance->__toString()
- ));
}
// Return the compressor instance
@@ -112,9 +97,6 @@ class GzipCompressor extends BaseFrameworkSystem implements Compressor {
* @return $string Returns always "gz"
*/
public final function getCompressorExtension () {
- if ((defined('DEBUG_COMPRESSOR')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:] Dateierweiterung angefordert.
\n",
- $this->__toString()
- ));
return "gz";
}
}