MediaWiki REL1_31
|
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 () | |
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 |
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 838 of file FSFileBackend.php.
FSFileBackendList::__construct | ( | $dir, | |
array | $params ) |
string | $dir | File system directory |
array | $params |
Definition at line 855 of file FSFileBackend.php.
References $e, $params, and initIterator().
FSFileBackendList::current | ( | ) |
Definition at line 905 of file FSFileBackend.php.
References getRelPath().
|
protected |
Filter out items by advancing to the next ones.
Reimplemented in FSFileBackendDirList, and FSFileBackendFileList.
Definition at line 948 of file FSFileBackend.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 958 of file FSFileBackend.php.
Referenced by current().
|
protected |
Return an appropriate iterator object to wrap.
string | $dir | File system directory |
Definition at line 876 of file FSFileBackend.php.
Referenced by __construct().
FSFileBackendList::key | ( | ) |
Definition at line 897 of file FSFileBackend.php.
References $pos.
FSFileBackendList::next | ( | ) |
FileBackendError |
Definition at line 913 of file FSFileBackend.php.
References $e, $pos, and filterViaNext().
FSFileBackendList::rewind | ( | ) |
FileBackendError |
Definition at line 927 of file FSFileBackend.php.
References $e, and filterViaNext().
FSFileBackendList::valid | ( | ) |
|
protected |
Definition at line 840 of file FSFileBackend.php.
|
protected |
Definition at line 849 of file FSFileBackend.php.
Referenced by __construct().
|
protected |
Definition at line 846 of file FSFileBackend.php.
|
protected |
Definition at line 843 of file FSFileBackend.php.