MediaWiki  master
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 }
SwiftFileBackendList\$params
array $params
Definition: SwiftFileBackendList.php:43
SwiftFileBackendList
SwiftFileBackend helper class to page through listings.
Definition: SwiftFileBackendList.php:32
SwiftFileBackendList\$dir
string $dir
Storage directory.
Definition: SwiftFileBackendList.php:52
SwiftFileBackendFileList\current
current()
Definition: SwiftFileBackendFileList.php:33
SwiftFileBackendList\$container
string $container
Container name.
Definition: SwiftFileBackendList.php:49
$path
$path
Definition: NoLocalSettings.php:25
SwiftFileBackendFileList\pageFromList
pageFromList( $container, $dir, &$after, $limit, array $params)
Get the given list portion (page)
Definition: SwiftFileBackendFileList.php:44
SwiftFileBackendFileList
Iterator for listing regular files.
Definition: SwiftFileBackendFileList.php:28