MediaWiki master
SwiftFileBackendFileList.php
Go to the documentation of this file.
1<?php
26
35 #[\ReturnTypeWillChange]
36 public function current() {
37 [ $path, $stat ] = current( $this->iterableBuffer );
38 $relPath = substr( $path, $this->suffixStart );
39 if ( is_array( $stat ) ) {
40 $storageDir = rtrim( $this->params['dir'], '/' );
41 $this->backend->loadListingStatInternal( "$storageDir/$relPath", $stat );
42 }
43
44 return $relPath;
45 }
46
47 protected function pageFromList( $container, $dir, &$after, $limit, array $params ) {
48 return $this->backend->getFileListPageInternal( $container, $dir, $after, $limit, $params );
49 }
50}
51
53class_alias( SwiftFileBackendFileList::class, 'SwiftFileBackendFileList' );
pageFromList( $container, $dir, &$after, $limit, array $params)
Get the next page of entries.
SwiftFileBackend helper class to page through listings.