Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5977185
SwiftFileBackendFileList.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
SwiftFileBackendFileList.php
View Options
<?php
/**
* OpenStack Swift based file backend.
*
* @license GPL-2.0-or-later
* @file
* @ingroup FileBackend
* @author Russ Nelson
*/
namespace
Wikimedia\FileBackend\FileIteration
;
/**
* Iterator for listing regular files
*/
class
SwiftFileBackendFileList
extends
SwiftFileBackendList
{
/**
* @see Iterator::current()
* @return string|bool String (relative path) or false
*/
#[\ReturnTypeWillChange]
public
function
current
()
{
[
$path
,
$stat
]
=
current
(
$this
->
iterableBuffer
);
$relPath
=
substr
(
$path
,
$this
->
suffixStart
);
if
(
is_array
(
$stat
)
)
{
$storageDir
=
rtrim
(
$this
->
params
[
'dir'
],
'/'
);
$this
->
backend
->
loadListingStatInternal
(
"$storageDir/$relPath"
,
$stat
);
}
return
$relPath
;
}
/** @inheritDoc */
protected
function
pageFromList
(
$container
,
$dir
,
&
$after
,
$limit
,
array
$params
)
{
return
$this
->
backend
->
getFileListPageInternal
(
$container
,
$dir
,
$after
,
$limit
,
$params
);
}
}
/** @deprecated class alias since 1.43 */
class_alias
(
SwiftFileBackendFileList
::
class
,
'SwiftFileBackendFileList'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 19:44 (2 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
05/d4/e9f2d803bfea798ef596af9a2d14
Default Alt Text
SwiftFileBackendFileList.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment