contributions/jcssmanager/behaviour/commands/jcssmanager/compress.css.cmd.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Compress CSS 00004 * 00005 * Delegates to algorithm defines as ConfigJCSSManager::CSS_COMPRESSOR 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup JCSSManager 00009 */ 00010 class JCSSManagerCompressCSSCommand extends CommandDelegate { 00011 00012 /** 00013 * COnstructor 00014 * 00015 * @param $in_files array 00016 * @param $out_file string 00017 * @param $type CSS type (CSS, CSS_IE6 etc) 00018 * @return void 00019 */ 00020 public function __construct($in_files, $out_file, $type) { 00021 $compressor = strtolower(Config::get_value(ConfigJCSSManager::CSS_COMPRESSOR)); 00022 Load::commands("jcssmanager/$compressor/compress.css"); 00023 $cls = 'JCSSManagerCompressCSS' . Load::filename_to_classname($compressor, 'Command'); 00024 parent::__construct(new $cls($in_files, $out_file, $type)); 00025 } 00026 }