You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed to use a specific format for the filename, but didn't see a way to do this. I changed the save function to accept an optional $filename parameter. Maybe this functionality could be properly added?
/**
* Save to a file
*
* @param string [optional] $filename
* @return void
*/
public function save($filename = null)
{
if ($filename)
$file = $filename;
else
$file = $this->getFilename() . '.' . $this->getFileExtension();
// Add save path if given
if (null !== $this->savePath) {
$file = $this->savePath . $file;
}
file_put_contents(
$file,
$this->getOutput()
);
}
The text was updated successfully, but these errors were encountered:
I needed to use a specific format for the filename, but didn't see a way to do this. I changed the
save
function to accept an optional$filename
parameter. Maybe this functionality could be properly added?The text was updated successfully, but these errors were encountered: