MediaWiki
REL1_20
|
This class is used to hold the location and do limited manipulation of files stored temporarily (this will be whatever wfTempDir() returns) More...
Public Member Functions | |
__destruct () | |
Cleans up after the temporary file by deleting it. | |
autocollect () | |
Set flag clean up after the temporary file. | |
bind ($object) | |
Clean up the temporary file only after an object goes out of scope. | |
preserve () | |
Set flag to not clean up after the temporary file. | |
purge () | |
Purge this file off the file system. | |
Static Public Member Functions | |
static | factory ($prefix, $extension= '') |
Make a new temporary file on the file system. | |
Protected Attributes | |
$canDelete = false | |
Static Protected Attributes | |
static | $instances = array() |
This class is used to hold the location and do limited manipulation of files stored temporarily (this will be whatever wfTempDir() returns)
Definition at line 30 of file TempFSFile.php.
Cleans up after the temporary file by deleting it.
Definition at line 114 of file TempFSFile.php.
References wfRestoreWarnings(), and wfSuppressWarnings().
Set flag clean up after the temporary file.
Definition at line 107 of file TempFSFile.php.
TempFSFile::bind | ( | $ | object | ) |
Clean up the temporary file only after an object goes out of scope.
$object | Object |
Definition at line 87 of file TempFSFile.php.
static TempFSFile::factory | ( | $ | prefix, |
$ | extension = '' |
||
) | [static] |
Make a new temporary file on the file system.
Temporary files may be purged when the file object falls out of scope.
$prefix | string |
$extension | string |
Definition at line 44 of file TempFSFile.php.
References $ext, FSFile\$path, wfProfileIn(), wfProfileOut(), wfRandomString(), wfRestoreWarnings(), wfSuppressWarnings(), and wfTempDir().
Referenced by UploadFromChunks\concatenateChunks(), FileBackendTest\doTestDoOperationsPipeline(), SwiftFileBackend\getLocalCopy(), and FileBackendTest\provider_testStore().
Set flag to not clean up after the temporary file.
Definition at line 98 of file TempFSFile.php.
Purge this file off the file system.
Definition at line 73 of file TempFSFile.php.
References $ok, wfRestoreWarnings(), and wfSuppressWarnings().
TempFSFile::$canDelete = false [protected] |
Definition at line 31 of file TempFSFile.php.
TempFSFile::$instances = array() [static, protected] |
Definition at line 34 of file TempFSFile.php.