MediaWiki  REL1_24
CreateFileOp Class Reference

Create a file in the backend with the given content. More...

Inheritance diagram for CreateFileOp:
Collaboration diagram for CreateFileOp:

List of all members.

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.

Detailed Description

Create a file in the backend with the given content.

Parameters for this operation are outlined in FileBackend::doOperations().

Definition at line 459 of file FileOp.php.


Member Function Documentation

CreateFileOp::allowedParams ( ) [protected]

Get the file operation parameters.

Returns:
array (required params list, optional params list, list of params that are paths)

Reimplemented from FileOp.

Definition at line 460 of file FileOp.php.

CreateFileOp::doAttempt ( ) [protected]
Returns:
Status

Reimplemented from FileOp.

Definition at line 496 of file FileOp.php.

CreateFileOp::doPrecheck ( array &$  predicates) [protected]
Parameters:
array$predicates
Returns:
Status

Reimplemented from FileOp.

Definition at line 468 of file FileOp.php.

precheckDestExistence() helper function to get the source file SHA-1.

Subclasses should overwride this if the source is not in storage.

Returns:
string|bool Returns false on failure

Reimplemented from FileOp.

Definition at line 505 of file FileOp.php.

Get a list of storage paths written to for this operation.

Returns:
array

Reimplemented from FileOp.

Definition at line 509 of file FileOp.php.


The documentation for this class was generated from the following file: