MediaWiki
REL1_19
|
Create a file in the backend with the given content. 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. |
Create a file in the backend with the given content.
Parameters similar to FileBackendStore::createInternal(), which include: content : the raw file contents 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 491 of file FileOp.php.
CreateFileOp::allowedParams | ( | ) | [protected] |
Get the file operation parameters.
Reimplemented from FileOp.
Definition at line 492 of file FileOp.php.
CreateFileOp::doAttempt | ( | ) | [protected] |
Reimplemented from FileOp.
Definition at line 517 of file FileOp.php.
References Status\newGood().
CreateFileOp::doPrecheck | ( | array &$ | predicates | ) | [protected] |
Reimplemented from FileOp.
Definition at line 496 of file FileOp.php.
References FileOp\getParam(), Status\newGood(), and FileOp\precheckDestExistence().
CreateFileOp::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 526 of file FileOp.php.
References wfBaseConvert().
Get a list of storage paths written to for this operation.
Reimplemented from FileOp.
Definition at line 530 of file FileOp.php.