public function saveAs($extension = NULL)
	{
		$extension = (!is_null($extension) ? $extension : $this->extension);

		$converter = $this->extracter->converter();
		$converter->setExtension($extension);
		$data = $converter->toNative($this->params);
	
		// We need to rename the file's extension
		$this->rename(NULL, $extension);

		$this->fs->dumpFile($this->file, $data);	
	}
public function saveAs($extension = NULL)
	{
		$extension = (!is_null($extension) ? $extension : $this->extension);

		$converter = $this->extracter->converter();
		$converter->setExtension($extension);
		$data = $converter->toNative($this->params);
	
		// We need to rename the file's extension
		$this->rename(NULL, $extension);

		$this->fs->dumpFile($this->file, $data);	
	}
public function saveAs ( $ extension = NULL ) { $ extension = ( ! is_null ( $ extension ) ? $ extension : $ this -> extension ) ; $ converter = $ this -> extracter -> converter ( ) ; $ converter -> setExtension ( $ extension ) ; $ data = $ converter -> toNative ( $ this -> params ) ; // We need to rename the file's extension $ this -> rename ( NULL , $ extension ) ; $ this -> fs -> dumpFile ( $ this -> file , $ data ) ; }
Save as a different extension

@param String $extension
@return void
@author Dan Cox
Save as a different extension