MediaWiki REL1_34
SwiftFileBackendFileList.php
Go to the documentation of this file.
1<?php
33 public function current() {
34 list( $path, $stat ) = current( $this->bufferIter );
35 $relPath = substr( $path, $this->suffixStart );
36 if ( is_array( $stat ) ) {
37 $storageDir = rtrim( $this->params['dir'], '/' );
38 $this->backend->loadListingStatInternal( "$storageDir/$relPath", $stat );
39 }
40
41 return $relPath;
42 }
43
44 protected function pageFromList( $container, $dir, &$after, $limit, array $params ) {
45 return $this->backend->getFileListPageInternal( $container, $dir, $after, $limit, $params );
46 }
47}
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.