public function compress($type, $files, $file) 
	{
		// files have been updated so update the minified file
		if($this->isUpdated($files))
		{
			$content = $this->getFileContents($files);
			switch($type){
				case 'css':
					$content = $this->minifyCSS($content);
				break;
				case 'js':
					$content = $this->minifyJS($content);
				break;
			}
			$this->saveFile($file, $content);
		}
		return str_replace($this->scriptPath,$this->coreUrl,$file);	
	}
public function compress($type, $files, $file) 
	{
		// files have been updated so update the minified file
		if($this->isUpdated($files))
		{
			$content = $this->getFileContents($files);
			switch($type){
				case 'css':
					$content = $this->minifyCSS($content);
				break;
				case 'js':
					$content = $this->minifyJS($content);
				break;
			}
			$this->saveFile($file, $content);
		}
		return str_replace($this->scriptPath,$this->coreUrl,$file);	
	}
public function compress ( $ type , $ files , $ file ) { // files have been updated so update the minified file if ( $ this -> isUpdated ( $ files ) ) { $ content = $ this -> getFileContents ( $ files ) ; switch ( $ type ) { case 'css' : $ content = $ this -> minifyCSS ( $ content ) ; break ; case 'js' : $ content = $ this -> minifyJS ( $ content ) ; break ; } $ this -> saveFile ( $ file , $ content ) ; } return str_replace ( $ this -> scriptPath , $ this -> coreUrl , $ file ) ; }
get all contents and process the whole contents
@param string $type compress by type
@param array $files files that will be compressed
@param string $file
@return string return cache url of
get all contents and process the whole contents