Code base synced
[mailer.git] / inc / classes / middleware / compressor / class_CompressorChannel.php
index b88142642733cebf86c392a538fdf3b1fe669b4c..6d3ede2569da9a7066427c042b6a64de4681ef87 100644 (file)
@@ -4,9 +4,9 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @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);