MediaWiki master
FileBackendStoreShardFileIterator.php
Go to the documentation of this file.
1<?php
23
24use ArrayIterator;
25
30 protected function listFromShard( $container ) {
31 $list = $this->backend->getFileListInternal(
32 $container, $this->directory, $this->params );
33 if ( $list === null ) {
34 return new ArrayIterator( [] );
35 } else {
36 // @phan-suppress-next-line PhanTypeMismatchReturnSuperType
37 return is_array( $list ) ? new ArrayIterator( $list ) : $list;
38 }
39 }
40}
41
43class_alias( FileBackendStoreShardFileIterator::class, 'FileBackendStoreShardFileIterator' );
FileBackendStore helper function to handle listings that span container shards.