MediaWiki master
|
Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom behavior that we may want. More...
Inherits Iterator.
Inherited by Wikimedia\FileBackend\FileIteration\FSFileBackendDirList, and Wikimedia\FileBackend\FileIteration\FSFileBackendFileList.
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 null | $iter |
string | $lastError |
array | $params = [] |
int | $pos = 0 |
int | $suffixStart |
Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom behavior that we may want.
Do not use this class from places outside FSFileBackend.
Definition at line 39 of file FSFileBackendList.php.
Wikimedia\FileBackend\FileIteration\FSFileBackendList::__construct | ( | $dir, | |
array | $params ) |
string | $dir | File system directory |
array | $params |
Definition at line 58 of file FSFileBackendList.php.
References Wikimedia\FileBackend\FileIteration\FSFileBackendList\$params, $path, and Wikimedia\FileBackend\FileIteration\FSFileBackendList\initIterator().
Wikimedia\FileBackend\FileIteration\FSFileBackendList::current | ( | ) |
Definition at line 111 of file FSFileBackendList.php.
|
protected |
Filter out items by advancing to the next ones.
Reimplemented in Wikimedia\FileBackend\FileIteration\FSFileBackendDirList, and Wikimedia\FileBackend\FileIteration\FSFileBackendFileList.
Definition at line 165 of file FSFileBackendList.php.
Wikimedia\FileBackend\FileIteration\FSFileBackendList::getLastError | ( | ) |
Definition at line 158 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 175 of file FSFileBackendList.php.
References $path.
|
protected |
Return an appropriate iterator object to wrap.
string | $dir | File system directory |
UnexpectedValueException |
Definition at line 81 of file FSFileBackendList.php.
Referenced by Wikimedia\FileBackend\FileIteration\FSFileBackendList\__construct().
Wikimedia\FileBackend\FileIteration\FSFileBackendList::key | ( | ) |
Wikimedia\FileBackend\FileIteration\FSFileBackendList::next | ( | ) |
FileBackendError |
Definition at line 119 of file FSFileBackendList.php.
Wikimedia\FileBackend\FileIteration\FSFileBackendList::rewind | ( | ) |
FileBackendError |
Definition at line 135 of file FSFileBackendList.php.
Wikimedia\FileBackend\FileIteration\FSFileBackendList::valid | ( | ) |
|
protected |
Definition at line 41 of file FSFileBackendList.php.
|
protected |
Definition at line 43 of file FSFileBackendList.php.
|
protected |
Definition at line 52 of file FSFileBackendList.php.
Referenced by Wikimedia\FileBackend\FileIteration\FSFileBackendList\__construct().
|
protected |
Definition at line 49 of file FSFileBackendList.php.
|
protected |
Definition at line 46 of file FSFileBackendList.php.