MediaWiki
REL1_34
SwiftFileBackendFileList.php
Go to the documentation of this file.
1
<?php
28
class
SwiftFileBackendFileList
extends
SwiftFileBackendList
{
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
}
$path
$path
Definition
NoLocalSettings.php:25
SwiftFileBackendFileList
Iterator for listing regular files.
Definition
SwiftFileBackendFileList.php:28
SwiftFileBackendFileList\current
current()
Definition
SwiftFileBackendFileList.php:33
SwiftFileBackendFileList\pageFromList
pageFromList( $container, $dir, &$after, $limit, array $params)
Get the given list portion (page)
Definition
SwiftFileBackendFileList.php:44
SwiftFileBackendList
SwiftFileBackend helper class to page through listings.
Definition
SwiftFileBackendList.php:32
SwiftFileBackendList\$dir
string $dir
Storage directory.
Definition
SwiftFileBackendList.php:52
SwiftFileBackendList\$container
string $container
Container name.
Definition
SwiftFileBackendList.php:49
SwiftFileBackendList\$params
array $params
Definition
SwiftFileBackendList.php:43
includes
libs
filebackend
fileiteration
SwiftFileBackendFileList.php
Generated on Fri Apr 5 2024 23:10:04 for MediaWiki by
1.9.8