BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
SwiftFileBackendList Class Reference
Inheritance diagram for SwiftFileBackendList:
Collaboration diagram for SwiftFileBackendList:

Public Member Functions

 __construct (SwiftFileBackend $backend, $fullCont, $dir, array $params)
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Public Attributes

const PAGE_SIZE = 9000
 

Protected Member Functions

 pageFromList ($container, $dir, &$after, $limit, array $params)
 

Protected Attributes

 $bufferIter = []
 
 $bufferAfter = null
 
 $pos = 0
 
 $params = []
 
 $backend
 
 $container
 
 $dir
 
 $suffixStart
 

Detailed Description

SwiftFileBackend helper class to page through listings. Swift also has a listing limit of 10,000 objects for sanity. Do not use this class from places outside SwiftFileBackend.

Constructor & Destructor Documentation

SwiftFileBackendList::__construct ( SwiftFileBackend  $backend,
  $fullCont,
  $dir,
array  $params 
)
Parameters
SwiftFileBackend$backend
string$fullContResolved container name
string$dirResolved directory relative to container
array$params

Member Function Documentation

SwiftFileBackendList::key ( )
See Also
Iterator::key()
Returns
int
SwiftFileBackendList::next ( )
See Also
Iterator::next()
SwiftFileBackendList::pageFromList (   $container,
  $dir,
$after,
  $limit,
array  $params 
)
abstractprotected

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
SwiftFileBackendList::rewind ( )
See Also
Iterator::rewind()
SwiftFileBackendList::valid ( )
See Also
Iterator::valid()
Returns
bool

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