MediaWiki  1.34.0
SwiftFileBackendDirList Class Reference

Iterator for listing directories. More...

Inheritance diagram for SwiftFileBackendDirList:
Collaboration diagram for SwiftFileBackendDirList:

Public Member Functions

 current ()
 
- Public Member Functions inherited from SwiftFileBackendList
 __construct (SwiftFileBackend $backend, $fullCont, $dir, array $params)
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Protected Member Functions

 pageFromList ( $container, $dir, &$after, $limit, array $params)
 Get the given list portion (page) More...
 

Additional Inherited Members

- Public Attributes inherited from SwiftFileBackendList
const PAGE_SIZE = 9000
 
- Protected Attributes inherited from SwiftFileBackendList
SwiftFileBackend $backend
 
string null $bufferAfter = null
 List items after this path. More...
 
array $bufferIter = []
 List of path or (path,stat array) entries. More...
 
string $container
 Container name. More...
 
string $dir
 Storage directory. More...
 
array $params = []
 
int $pos = 0
 
int $suffixStart
 

Detailed Description

Iterator for listing directories.

Definition at line 28 of file SwiftFileBackendDirList.php.

Member Function Documentation

◆ current()

SwiftFileBackendDirList::current ( )
See also
Iterator::current()
Returns
string|bool String (relative path) or false

Definition at line 33 of file SwiftFileBackendDirList.php.

◆ pageFromList()

SwiftFileBackendDirList::pageFromList (   $container,
  $dir,
$after,
  $limit,
array  $params 
)
protected

Get the given list portion (page)

Parameters
string$containerResolved container name
string$dirResolved path relative to container
string&$after
int$limit
array$params
Returns
Traversable|array

Reimplemented from SwiftFileBackendList.

Definition at line 37 of file SwiftFileBackendDirList.php.

References SwiftFileBackendList\$container, SwiftFileBackendList\$dir, and SwiftFileBackendList\$params.


The documentation for this class was generated from the following file: