/**
  * Returns compressed content (done with given compression type, see constants)
  * @param string $content
  * @param string $method
  * @return string
  */
 private function compress($content, $method)
 {
     switch ($method) {
         case self::CSS_MINIFY:
             require_once t3lib_extMgm::extPath('queo_speedup', 'res/Minify_CSS_Compressor.php');
             return Minify_CSS_Compressor::process($content);
             break;
         case self::CSS_YIU:
             require_once t3lib_extMgm::extPath('queo_speedup', 'res/YUICompressor.php');
             $this->configureYUI($this->conf);
             return Minify_YUICompressor::minifyCSS($content, array('nomunge' => true, 'line-break' => 1000));
             break;
         case self::JS_YUI:
             require_once t3lib_extMgm::extPath('queo_speedup', 'res/YUICompressor.php');
             $this->configureYUI($this->conf);
             return Minify_YUICompressor::minifyJs($content, array('line-break' => 1000));
             break;
         case self::JS_MIN:
             require_once PATH_typo3 . 'contrib/jsmin/jsmin.php';
             return JSMin::minify($content);
             break;
         case self::JS_MINPLUS:
             require_once t3lib_extMgm::extPath('queo_speedup', 'res/JSMinPlus.php');
             return JSMinPlus::minify($content);
             break;
         default:
         case self::NO_COMPRESSION:
             //unknown compression type
             return $content;
             break;
     }
 }