MediaWiki
REL1_39
SwiftFileBackendFileList.php
Go to the documentation of this file.
1
<?php
28
class
SwiftFileBackendFileList
extends
SwiftFileBackendList
{
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
}
$path
$path
Definition
NoLocalSettings.php:25
SwiftFileBackendFileList
Iterator for listing regular files.
Definition
SwiftFileBackendFileList.php:28
SwiftFileBackendFileList\current
current()
Definition
SwiftFileBackendFileList.php:34
SwiftFileBackendFileList\pageFromList
pageFromList( $container, $dir, &$after, $limit, array $params)
Get the given list portion (page)
Definition
SwiftFileBackendFileList.php:45
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 Dec 20 2024 15:34:35 for MediaWiki by
1.10.0