MediaWiki
REL1_19
|
FileBackendStore helper function to handle file listings that span container shards. More...
Public Member Functions | |
__construct (FileBackendStore $backend, $container, $dir, array $suffixes, array $params) | |
current () | |
key () | |
next () | |
rewind () | |
valid () | |
Protected Member Functions | |
nextShardIteratorIfNotValid () | |
If the iterator for this container shard is out of items, then move on to the next container that has items. | |
setIteratorFromCurrentShard () | |
Protected Attributes | |
$backend | |
$container | |
$curShard = 0 | |
$directory | |
$iter | |
$params | |
$pos = 0 | |
$shardSuffixes |
FileBackendStore helper function to handle file listings that span container shards.
Do not use this class from places outside of FileBackendStore.
Definition at line 1647 of file FileBackend.php.
FileBackendStoreShardListIterator::__construct | ( | FileBackendStore $ | backend, |
$ | container, | ||
$ | dir, | ||
array $ | suffixes, | ||
array $ | params | ||
) |
$backend | FileBackendStore |
$container | string Full storage container name |
$dir | string Storage directory relative to container |
$suffixes | Array List of container shard suffixes |
$params | Array |
Definition at line 1669 of file FileBackend.php.
References $backend, $container, $dir, and $params.
Definition at line 1679 of file FileBackend.php.
Referenced by valid().
Definition at line 1687 of file FileBackend.php.
Definition at line 1691 of file FileBackend.php.
References nextShardIteratorIfNotValid().
FileBackendStoreShardListIterator::nextShardIteratorIfNotValid | ( | ) | [protected] |
If the iterator for this container shard is out of items, then move on to the next container that has items.
If there are none, then it advances to the last container.
Definition at line 1707 of file FileBackend.php.
References setIteratorFromCurrentShard(), and valid().
Referenced by next(), and rewind().
Definition at line 1722 of file FileBackend.php.
References nextShardIteratorIfNotValid(), and setIteratorFromCurrentShard().
FileBackendStoreShardListIterator::setIteratorFromCurrentShard | ( | ) | [protected] |
Definition at line 1716 of file FileBackend.php.
Referenced by nextShardIteratorIfNotValid(), and rewind().
Definition at line 1730 of file FileBackend.php.
References current().
Referenced by nextShardIteratorIfNotValid().
FileBackendStoreShardListIterator::$backend [protected] |
Definition at line 1649 of file FileBackend.php.
Referenced by __construct().
FileBackendStoreShardListIterator::$container [protected] |
Definition at line 1654 of file FileBackend.php.
Referenced by __construct().
FileBackendStoreShardListIterator::$curShard = 0 [protected] |
Definition at line 1659 of file FileBackend.php.
FileBackendStoreShardListIterator::$directory [protected] |
Definition at line 1655 of file FileBackend.php.
FileBackendStoreShardListIterator::$iter [protected] |
Definition at line 1658 of file FileBackend.php.
FileBackendStoreShardListIterator::$params [protected] |
Definition at line 1651 of file FileBackend.php.
Referenced by __construct().
FileBackendStoreShardListIterator::$pos = 0 [protected] |
Definition at line 1660 of file FileBackend.php.
FileBackendStoreShardListIterator::$shardSuffixes [protected] |
Definition at line 1653 of file FileBackend.php.