X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmiddleware%2Fcompressor%2Fclass_CompressorChannel.php;h=6d3ede2569da9a7066427c042b6a64de4681ef87;hp=b88142642733cebf86c392a538fdf3b1fe669b4c;hb=558b417d946a1a6cee5278e86b5ed042afb3aad6;hpb=42bc0e1fc5ae4653fe04c9d41474c874a0050b69 diff --git a/inc/classes/middleware/compressor/class_CompressorChannel.php b/inc/classes/middleware/compressor/class_CompressorChannel.php index b881426427..6d3ede2569 100644 --- a/inc/classes/middleware/compressor/class_CompressorChannel.php +++ b/inc/classes/middleware/compressor/class_CompressorChannel.php @@ -4,9 +4,9 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.ship-simu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -35,12 +35,6 @@ class CompressorChannel extends BaseMiddleware implements Registerable { protected function __construct () { // Call parent constructor! parent::__construct(__CLASS__); - - // Set description - $this->setObjectDescription("Komprimierungshandler"); - - // Create an unique ID - $this->generateUniqueId(); } /** @@ -67,14 +61,14 @@ class CompressorChannel extends BaseMiddleware implements Registerable { // Read all directories but no sub directories while ($dir = $dirPointer->readDirectoryExcept(array("..", ".", ".htaccess", ".svn"))) { // Is this a class file? - if ((substr($dir, 0, 6) == "class_") && (substr($dir, -4, 4) == FrameworkConfiguration::getInstance()->readConfig('php_extension'))) { + if ((substr($dir, 0, 6) == "class_") && (substr($dir, -4, 4) == ".php")) { // Get the compressor's name. That's why you must name // your files like your classes and also that's why you // must keep on class in one file. - $class = substr($dir, 6, -4); + $className = substr($dir, 6, -4); // Get an instance from our object factory - $tempInstance = ObjectFactory::createObjectByName($class); + $tempInstance = ObjectFactory::createObjectByName($className); // Set the compressor $cInstance->setCompressor($tempInstance);