MediaWiki REL1_35
SwiftFileBackendFileList.php
Go to the documentation of this file.
1<?php
33 #[\ReturnTypeWillChange]
34 public function current() {
35 list( $path, $stat ) = current( $this->bufferIter );
36 $relPath = substr( $path, $this->suffixStart );
37 if ( is_array( $stat ) ) {
38 $storageDir = rtrim( $this->params['dir'], '/' );
39 $this->backend->loadListingStatInternal( "$storageDir/$relPath", $stat );
40 }
41
42 return $relPath;
43 }
44
45 protected function pageFromList( $container, $dir, &$after, $limit, array $params ) {
46 return $this->backend->getFileListPageInternal( $container, $dir, $after, $limit, $params );
47 }
48}
Iterator for listing regular files.
pageFromList( $container, $dir, &$after, $limit, array $params)
Get the given list portion (page)
SwiftFileBackend helper class to page through listings.
string $dir
Storage directory.
string $container
Container name.