MediaWiki  REL1_19
CopyFileOp Class Reference

Copy a file from one storage path to another in the backend. More...

Inheritance diagram for CopyFileOp:
Collaboration diagram for CopyFileOp:

List of all members.

Public Member Functions

 storagePathsChanged ()
 Get a list of storage paths written to for this operation.
 storagePathsRead ()
 Get a list of storage paths read from for this operation.

Protected Member Functions

 allowedParams ()
 Get the file operation parameters.
 doAttempt ()
 doPrecheck (array &$predicates)

Detailed Description

Copy a file from one storage path to another in the backend.

Parameters similar to FileBackendStore::copyInternal(), which include: src : source storage path 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 543 of file FileOp.php.


Member Function Documentation

CopyFileOp::allowedParams ( ) [protected]

Get the file operation parameters.

Returns:
Array (required params list, optional params list)

Reimplemented from FileOp.

Definition at line 544 of file FileOp.php.

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

Reimplemented from FileOp.

Definition at line 569 of file FileOp.php.

References Status\newGood().

Here is the call graph for this function:

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

Reimplemented from FileOp.

Definition at line 548 of file FileOp.php.

References FileOp\fileExists(), Status\newGood(), and FileOp\precheckDestExistence().

Here is the call graph for this function:

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

Returns:
Array

Reimplemented from FileOp.

Definition at line 585 of file FileOp.php.

Get a list of storage paths read from for this operation.

Returns:
Array

Reimplemented from FileOp.

Definition at line 581 of file FileOp.php.


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