add option to clear the files in the static streamwrapper

remotes/origin/stable6
Robin Appelman 13 years ago
parent 6ddfe2029c
commit 156e72a0c4
  1. 4
      lib/files/stream/staticstream.php

@ -26,6 +26,10 @@ class StaticStream {
public function stream_flush() {
}
public static function clear() {
self::$data = array();
}
public function stream_open($path, $mode, $options, &$opened_path) {
switch ($mode[0]) {
case 'r':

Loading…
Cancel
Save