|
MediaWiki
master
|
SwiftFileBackend helper class to page through listings. More...


Public Member Functions | |
| __construct (SwiftFileBackend $backend, $fullCont, $dir, array $params) | |
| key () | |
| next () | |
| rewind () | |
| valid () | |
Public Attributes | |
| const | PAGE_SIZE = 9000 |
Protected Member Functions | |
| pageFromList ($container, $dir, &$after, $limit, array $params) | |
| Get the given list portion (page) More... | |
Protected Attributes | |
| SwiftFileBackend | $backend |
| string | $bufferAfter = null |
| List items after this path. More... | |
| array | $bufferIter = [] |
| List of path or (path,stat array) entries. More... | |
| string | $container |
| Container name. More... | |
| string | $dir |
| Storage directory. More... | |
| array | $params = [] |
| int | $pos = 0 |
| int | $suffixStart |
SwiftFileBackend helper class to page through listings.
Swift also has a listing limit of 10,000 objects for sanity. Do not use this class from places outside SwiftFileBackend.
Definition at line 1793 of file SwiftFileBackend.php.
| SwiftFileBackendList::__construct | ( | SwiftFileBackend | $backend, |
| $fullCont, | |||
| $dir, | |||
| array | $params | ||
| ) |
| SwiftFileBackend | $backend | |
| string | $fullCont | Resolved container name |
| string | $dir | Resolved directory relative to container |
| array | $params |
Definition at line 1826 of file SwiftFileBackend.php.
| SwiftFileBackendList::key | ( | ) |
Definition at line 1845 of file SwiftFileBackend.php.
References $pos.
| SwiftFileBackendList::next | ( | ) |
Definition at line 1852 of file SwiftFileBackend.php.
References $pos, pageFromList(), and valid().
|
abstractprotected |
| SwiftFileBackendList::rewind | ( | ) |
Definition at line 1868 of file SwiftFileBackend.php.
References pageFromList().
| SwiftFileBackendList::valid | ( | ) |
Definition at line 1880 of file SwiftFileBackend.php.
Referenced by next().
|
protected |
Definition at line 1807 of file SwiftFileBackend.php.
Referenced by __construct().
|
protected |
List items after this path.
Definition at line 1798 of file SwiftFileBackend.php.
|
protected |
List of path or (path,stat array) entries.
Definition at line 1795 of file SwiftFileBackend.php.
|
protected |
Container name.
Definition at line 1810 of file SwiftFileBackend.php.
Referenced by SwiftFileBackendDirList\pageFromList(), and SwiftFileBackendFileList\pageFromList().
|
protected |
Storage directory.
Definition at line 1813 of file SwiftFileBackend.php.
Referenced by __construct(), SwiftFileBackendDirList\pageFromList(), and SwiftFileBackendFileList\pageFromList().
|
protected |
Definition at line 1804 of file SwiftFileBackend.php.
Referenced by __construct().
|
protected |
Definition at line 1801 of file SwiftFileBackend.php.
|
protected |
Definition at line 1816 of file SwiftFileBackend.php.
| const SwiftFileBackendList::PAGE_SIZE = 9000 |
Definition at line 1818 of file SwiftFileBackend.php.