Example #1
0
 /**
  * Deletes all temp files and resets the cache
  * Use this function to clean up the file system on exit
  * @return void
  */
 public static function clear()
 {
     foreach (self::$tempFiles as $file) {
         unlink($file);
     }
     self::$tempFiles = array();
 }