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