MediaWiki
REL1_19
|
Store a file into the backend from a file on the file system. More...
Public Member Functions | |
storagePathsChanged () | |
Get a list of storage paths written to for this operation. | |
Protected Member Functions | |
allowedParams () | |
Get the file operation parameters. | |
doAttempt () | |
doPrecheck (array &$predicates) | |
getSourceSha1Base36 () | |
precheckDestExistence() helper function to get the source file SHA-1. |
Store a file into the backend from a file on the file system.
Parameters similar to FileBackendStore::storeInternal(), which include: src : source path on file system dst : destination storage path overwrite : do nothing and pass if an identical file exists at destination overwriteSame : override any existing file at destination
Definition at line 429 of file FileOp.php.
StoreFileOp::allowedParams | ( | ) | [protected] |
Get the file operation parameters.
Reimplemented from FileOp.
Definition at line 430 of file FileOp.php.
StoreFileOp::doAttempt | ( | ) | [protected] |
Reimplemented from FileOp.
Definition at line 459 of file FileOp.php.
References Status\newGood().
StoreFileOp::doPrecheck | ( | array &$ | predicates | ) | [protected] |
Reimplemented from FileOp.
Definition at line 434 of file FileOp.php.
References Status\newGood(), and FileOp\precheckDestExistence().
StoreFileOp::getSourceSha1Base36 | ( | ) | [protected] |
precheckDestExistence() helper function to get the source file SHA-1.
Subclasses should overwride this iff the source is not in storage.
Reimplemented from FileOp.
Definition at line 468 of file FileOp.php.
References wfBaseConvert(), wfRestoreWarnings(), and wfSuppressWarnings().
Get a list of storage paths written to for this operation.
Reimplemented from FileOp.
Definition at line 478 of file FileOp.php.