MediaWiki master
FileBackendStoreShardDirIterator.php
Go to the documentation of this file.
1<?php
9
10use ArrayIterator;
11
17 protected function listFromShard( $container ) {
18 $list = $this->backend->getDirectoryListInternal(
19 $container, $this->directory, $this->params );
20 if ( $list === null ) {
21 return new ArrayIterator( [] );
22 } else {
23 // @phan-suppress-next-line PhanTypeMismatchReturnSuperType
24 return is_array( $list ) ? new ArrayIterator( $list ) : $list;
25 }
26 }
27}
28
30class_alias( FileBackendStoreShardDirIterator::class, 'FileBackendStoreShardDirIterator' );
listFromShard( $container)
Get the list for a given container shard.Iterator
FileBackendStore helper function to handle listings that span container shards.