MediaWiki REL1_35
|
Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom behavoir that we may want. More...
Public Member Functions | |
__construct ( $dir, array $params) | |
current () | |
getLastError () | |
key () | |
next () | |
rewind () | |
valid () | |
Protected Member Functions | |
filterViaNext () | |
Filter out items by advancing to the next ones. | |
getRelPath ( $dir) | |
Return only the relative path and normalize slashes to FileBackend-style. | |
initIterator ( $dir) | |
Return an appropriate iterator object to wrap. | |
Protected Attributes | |
Iterator | $iter |
string | $lastError |
array | $params = [] |
int | $pos = 0 |
int | $suffixStart |
Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom behavoir that we may want.
Do not use this class from places outside FSFileBackend.
Definition at line 29 of file FSFileBackendList.php.
FSFileBackendList::__construct | ( | $dir, | |
array | $params | ||
) |
string | $dir | File system directory |
array | $params |
Definition at line 48 of file FSFileBackendList.php.
References $params, $path, and initIterator().
FSFileBackendList::current | ( | ) |
Definition at line 101 of file FSFileBackendList.php.
|
protected |
Filter out items by advancing to the next ones.
Reimplemented in FSFileBackendDirList, and FSFileBackendFileList.
Definition at line 155 of file FSFileBackendList.php.
FSFileBackendList::getLastError | ( | ) |
Definition at line 148 of file FSFileBackendList.php.
|
protected |
Return only the relative path and normalize slashes to FileBackend-style.
Uses the "real path" since the suffix is based upon that.
string | $dir |
Definition at line 165 of file FSFileBackendList.php.
References $path.
|
protected |
Return an appropriate iterator object to wrap.
string | $dir | File system directory |
UnexpectedValueException |
Definition at line 71 of file FSFileBackendList.php.
Referenced by __construct().
FSFileBackendList::key | ( | ) |
FSFileBackendList::next | ( | ) |
FileBackendError |
Definition at line 109 of file FSFileBackendList.php.
FSFileBackendList::rewind | ( | ) |
FileBackendError |
Definition at line 125 of file FSFileBackendList.php.
FSFileBackendList::valid | ( | ) |
|
protected |
Definition at line 31 of file FSFileBackendList.php.
|
protected |
Definition at line 33 of file FSFileBackendList.php.
|
protected |
Definition at line 42 of file FSFileBackendList.php.
Referenced by __construct().
|
protected |
Definition at line 39 of file FSFileBackendList.php.
|
protected |
Definition at line 36 of file FSFileBackendList.php.