wiki.techinc.nl/includes/upload
Aaron Schulz c8e1463cc0 [FileRepo] Various code cleanups.
* Made File::isHashed() wrap FileRepo::getHashLevels(). Removed now-used FileRepo::isHashed().
* Removed FileRepo::simpleClean(). Not useful anymore since the paths in Status errors don't have $IP or upload dirs anymore.
* Removed code in FileRepo::fileExistsBatch() and FileRepo::cleanupBatch() to handle FS file paths, which should never be passed in anymore. Likewise, removed FILES_ONLY parameter.
* Removed FileRepo::append()/appendFinish() stub functions.
* Added FileRepo::assertWritableRepo() function to better handle repos that are read-only by design rather than the hack of overwriting each function (several were missed).
* Added FileBackend::isPathTraversalFree() function and used it in FileRepo::validateFilename() to avoid duplication.
* Tweaked FileRepo::freeTemp() to avoid file locking and made FileRepo::cleanupBatch() return a Status.
* Moved FileRepo::cleanupDeletedBatch() near FileRepo::deleteBatch().
* Added type hinting to a few places.
* Tweaked some misleading doc comments and added function visibility markers.

Change 1:
* Simplified NullRepo to also use assertWritableRepo(). It is currently only used by a single unit test.

Change-Id: I1cd0f4971011772e38e5156f94ffc50325372f28
2012-04-05 12:48:47 -07:00
..
UploadBase.php Removed unused saveTempUploadedFile() function 2012-03-29 18:54:26 -07:00
UploadFromChunks.php Remove backslash from @return types 2012-02-13 16:35:59 +00:00
UploadFromFile.php More return documentation 2012-02-09 21:36:14 +00:00
UploadFromStash.php Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar 2012-02-09 19:29:36 +00:00
UploadFromUrl.php Followup r11120, wfParseUrl() can return false, if it does, the host isn't going to be valid 2012-02-11 15:13:01 +00:00
UploadStash.php [FileRepo] Various code cleanups. 2012-04-05 12:48:47 -07:00