MediaWiki
REL1_40
FileBackendStoreShardFileIterator.php
Go to the documentation of this file.
1
<?php
25
class
FileBackendStoreShardFileIterator
extends
FileBackendStoreShardListIterator
{
26
protected
function
listFromShard
(
$container
) {
27
$list = $this->backend->getFileListInternal(
28
$container
, $this->directory, $this->params );
29
if
( $list ===
null
) {
30
return
new
ArrayIterator( [] );
31
}
else
{
32
// @phan-suppress-next-line PhanTypeMismatchReturnSuperType
33
return
is_array( $list ) ?
new
ArrayIterator( $list ) : $list;
34
}
35
}
36
}
FileBackendStoreShardFileIterator
Iterator for listing regular files.
Definition
FileBackendStoreShardFileIterator.php:25
FileBackendStoreShardFileIterator\listFromShard
listFromShard( $container)
Get the list for a given container shard.
Definition
FileBackendStoreShardFileIterator.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
FileBackendStoreShardFileIterator.php
Generated on Thu Jun 27 2024 14:03:07 for MediaWiki by
1.10.0