usage
TempFile is a Sushee PHP class conceived to manipulate temporary files.
It might be used to create exported CSV file, destined to be downloaded by the final user, or to keep temporary datas.
These temporary files are deleted on a regular basis.
This object extends Sushee File class and therefore inherits its methods.
exemples
include('../Kernel/common/file.class.php');
$orig = new File("/media/picture.jpg");
$tmp = new TempFile();
$tmp->setExtension( $orig->getExtension() );
$orig->copy( $tmp );
$tmp->forceDownload();