MediaWiki master
SwiftFileBackendFileList.php
Go to the documentation of this file.
1<?php
12
21 #[\ReturnTypeWillChange]
22 public function current() {
23 [ $path, $stat ] = current( $this->iterableBuffer );
24 $relPath = substr( $path, $this->suffixStart );
25 if ( is_array( $stat ) ) {
26 $storageDir = rtrim( $this->params['dir'], '/' );
27 $this->backend->loadListingStatInternal( "$storageDir/$relPath", $stat );
28 }
29
30 return $relPath;
31 }
32
34 protected function pageFromList( $container, $dir, &$after, $limit, array $params ) {
35 return $this->backend->getFileListPageInternal( $container, $dir, $after, $limit, $params );
36 }
37}
38
40class_alias( SwiftFileBackendFileList::class, 'SwiftFileBackendFileList' );
pageFromList( $container, $dir, &$after, $limit, array $params)
Get the next page of entries.Traversable|array
SwiftFileBackend helper class to page through listings.