MediaWiki
REL1_22
|
Class simulating a backend store. More...
Public Member Functions | |
getDirectoryListInternal ($container, $dir, array $params) | |
Do not call this function from places outside FileBackend. | |
getFileListInternal ($container, $dir, array $params) | |
Do not call this function from places outside FileBackend. | |
isPathUsableInternal ($storagePath) | |
Check if a file can be created or changed at a given storage path. | |
Protected Member Functions | |
debug ($msg= '') | |
Poor man debugging. | |
directoriesAreVirtual () | |
Is this a key/value store where directories are just virtual? Virtual directories exists in so much as files exists that are prefixed with the directory path followed by a forward slash. | |
doCopyInternal (array $params) | |
doCreateInternal (array $params) | |
doDeleteInternal (array $params) | |
doDirectoryExists ($container, $dir, array $params) | |
doGetFileStat (array $params) | |
doGetLocalCopyMulti (array $params) | |
doStoreInternal (array $params) | |
Protected Attributes | |
$mocked = array() |
MockFileBackend::debug | ( | $ | msg = '' | ) | [protected] |
Poor man debugging.
Definition at line 36 of file MockFileBackend.php.
References wfDebug(), and wfGetCaller().
Referenced by directoriesAreVirtual(), doCopyInternal(), doCreateInternal(), doDeleteInternal(), doDirectoryExists(), doGetFileStat(), doGetLocalCopyMulti(), doStoreInternal(), getDirectoryListInternal(), and getFileListInternal().
MockFileBackend::directoriesAreVirtual | ( | ) | [protected] |
Is this a key/value store where directories are just virtual? Virtual directories exists in so much as files exists that are prefixed with the directory path followed by a forward slash.
Reimplemented from FileBackendStore.
Definition at line 118 of file MockFileBackend.php.
References debug().
MockFileBackend::doCopyInternal | ( | array $ | params | ) | [protected] |
Reimplemented from FileBackendStore.
Definition at line 61 of file MockFileBackend.php.
References debug(), and Status\newGood().
MockFileBackend::doCreateInternal | ( | array $ | params | ) | [protected] |
Reimplemented from FileBackendStore.
Definition at line 44 of file MockFileBackend.php.
References debug(), and Status\newGood().
Referenced by doStoreInternal().
MockFileBackend::doDeleteInternal | ( | array $ | params | ) | [protected] |
Reimplemented from FileBackendStore.
Definition at line 69 of file MockFileBackend.php.
References debug(), and Status\newGood().
MockFileBackend::doDirectoryExists | ( | $ | container, |
$ | dir, | ||
array $ | params | ||
) | [protected] |
string | $container | Resolved container name |
string | $dir | Resolved path relative to container |
array | $params |
Reimplemented from FileBackendStore.
Definition at line 103 of file MockFileBackend.php.
References debug().
MockFileBackend::doGetFileStat | ( | array $ | params | ) | [protected] |
Reimplemented from FileBackendStore.
Definition at line 76 of file MockFileBackend.php.
References array(), debug(), it, and wfTimestamp().
MockFileBackend::doGetLocalCopyMulti | ( | array $ | params | ) | [protected] |
Reimplemented from FileBackendStore.
Definition at line 91 of file MockFileBackend.php.
References array(), as, debug(), wfRandomString(), and wfTempDir().
MockFileBackend::doStoreInternal | ( | array $ | params | ) | [protected] |
Reimplemented from FileBackendStore.
Definition at line 56 of file MockFileBackend.php.
References debug(), and doCreateInternal().
MockFileBackend::getDirectoryListInternal | ( | $ | container, |
$ | dir, | ||
array $ | params | ||
) |
Do not call this function from places outside FileBackend.
string | $container | Resolved container name |
string | $dir | Resolved path relative to container |
array | $params |
Reimplemented from FileBackendStore.
Definition at line 108 of file MockFileBackend.php.
MockFileBackend::getFileListInternal | ( | $ | container, |
$ | dir, | ||
array $ | params | ||
) |
Do not call this function from places outside FileBackend.
string | $container | Resolved container name |
string | $dir | Resolved path relative to container |
array | $params |
Reimplemented from FileBackendStore.
Definition at line 113 of file MockFileBackend.php.
MockFileBackend::isPathUsableInternal | ( | $ | storagePath | ) |
Check if a file can be created or changed at a given storage path.
FS backends should check if the parent directory exists, files can be written under it, and that any file already there is writable. Backends using key/value stores should check if the container exists.
string | $storagePath |
Reimplemented from FileBackendStore.
Definition at line 40 of file MockFileBackend.php.
MockFileBackend::$mocked = array() [protected] |
Definition at line 33 of file MockFileBackend.php.