MediaWiki
REL1_35
FileBackendStoreShardDirIterator.php
Go to the documentation of this file.
1
<?php
25
class
FileBackendStoreShardDirIterator
extends
FileBackendStoreShardListIterator
{
26
protected
function
listFromShard
(
$container
) {
27
$list = $this->backend->getDirectoryListInternal(
28
$container
, $this->directory, $this->params );
29
if
( $list ===
null
) {
30
return
new
ArrayIterator( [] );
31
}
else
{
32
return
is_array( $list ) ?
new
ArrayIterator( $list ) : $list;
33
}
34
}
35
}
FileBackendStoreShardDirIterator
Iterator for listing directories.
Definition
FileBackendStoreShardDirIterator.php:25
FileBackendStoreShardDirIterator\listFromShard
listFromShard( $container)
Get the list for a given container shard.
Definition
FileBackendStoreShardDirIterator.php:26
FileBackendStoreShardListIterator
FileBackendStore helper function to handle listings that span container shards.
Definition
FileBackendStoreShardListIterator.php:28
FileBackendStoreShardListIterator\$container
string $container
Full container name.
Definition
FileBackendStoreShardListIterator.php:36
includes
libs
filebackend
fileiteration
FileBackendStoreShardDirIterator.php
Generated on Sat Apr 6 2024 00:07:21 for MediaWiki by
1.9.8