contributions/jcssmanager/behaviour/commands/jcssmanager/yui/compress.css.cmd.php
Go to the documentation of this file.00001 <?php 00002 Load::commands('jcssmanager/yui/compress.base'); 00003 00004 class JCSSManagerCompressCSSYuiCommand extends JCSSManagerCompressBaseYuiCommand { 00005 protected $type; 00006 00007 /** 00008 * COnstructor 00009 * 00010 * @param $in_files array 00011 * @param $out_file string 00012 * @return void 00013 */ 00014 public function __construct($in_files, $out_file, $type) { 00015 $this->type = $type; 00016 parent::__construct($in_files, $out_file); 00017 } 00018 00019 /** 00020 * Return file content 00021 * 00022 * @param string $file 00023 * @return string 00024 */ 00025 protected function get_file_contents($file) { 00026 return JCSSManager::transform_css_file($file); 00027 } 00028 00029 /** 00030 * Invoke YUICOmpressor 00031 * 00032 * @param string $in_file 00033 * @param string $out_file 00034 * @return Status 00035 */ 00036 protected function invoke_yui($in_file, $out_file) { 00037 $ret = $this->run_yui($in_file, $out_file, 'css'); 00038 return $ret; 00039 } 00040 00041 /** 00042 * Returns type of compressed file 00043 * 00044 * @return string One of TYPE_X constants 00045 */ 00046 protected function get_db_type() { 00047 return $this->type; 00048 } 00049 }