|
MediaWiki
REL1_23
|
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) | |
Protected Attributes | |
| SwiftFileBackend | $backend |
| * | |
| string | $bufferAfter = null |
| List items *after* this path *. | |
| array | $bufferIter = array() |
| List of path or (path,stat array) entries *. | |
| string | $container |
| Container name *. | |
| string | $dir |
| Storage directory *. | |
| array | $params = array() |
| * | |
| 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 1673 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 1698 of file SwiftFileBackend.php.
Definition at line 1724 of file SwiftFileBackend.php.
| SwiftFileBackendList::pageFromList | ( | $ | container, |
| $ | dir, | ||
| &$ | after, | ||
| $ | limit, | ||
| array $ | params | ||
| ) | [abstract, protected] |
Get the given list portion (page)
| string | $container | Resolved container name |
| string | $dir | Resolved path relative to container |
| string | $after | null |
| int | $limit | |
| array | $params |
Reimplemented in SwiftFileBackendFileList, and SwiftFileBackendDirList.
Referenced by valid().
Definition at line 1740 of file SwiftFileBackend.php.
Definition at line 1752 of file SwiftFileBackend.php.
References pageFromList().
SwiftFileBackend SwiftFileBackendList::$backend [protected] |
*
Definition at line 1682 of file SwiftFileBackend.php.
string SwiftFileBackendList::$bufferAfter = null [protected] |
List items *after* this path *.
Definition at line 1676 of file SwiftFileBackend.php.
List of path or (path,stat array) entries *.
Definition at line 1674 of file SwiftFileBackend.php.
string SwiftFileBackendList::$container [protected] |
Container name *.
Definition at line 1684 of file SwiftFileBackend.php.
Referenced by SwiftFileBackendFileList\pageFromList().
string SwiftFileBackendList::$dir [protected] |
Storage directory *.
Definition at line 1686 of file SwiftFileBackend.php.
Referenced by SwiftFileBackendFileList\pageFromList().
*
Definition at line 1680 of file SwiftFileBackend.php.
int SwiftFileBackendList::$pos = 0 [protected] |
*
Definition at line 1678 of file SwiftFileBackend.php.
int SwiftFileBackendList::$suffixStart [protected] |
*
Definition at line 1688 of file SwiftFileBackend.php.
| const SwiftFileBackendList::PAGE_SIZE = 9000 |
Definition at line 1690 of file SwiftFileBackend.php.