67 $this->container = $fullCont;
69 if ( substr( $this->dir, -1 ) ===
'/' ) {
70 $this->dir = substr( $this->dir, 0, -1 );
72 if ( $this->dir ==
'' ) {
73 $this->suffixStart = 0;
75 $this->suffixStart = strlen( $this->dir ) + 1;
84 public function key() {
93 next( $this->bufferIter );
97 if ( !$this->
valid() && count( $this->bufferIter ) ) {
99 $this->container, $this->dir, $this->bufferAfter, self::PAGE_SIZE, $this->params
109 $this->bufferAfter =
null;
112 $this->container, $this->dir, $this->bufferAfter, self::PAGE_SIZE, $this->params
121 if ( $this->bufferIter ===
null ) {
124 return ( current( $this->bufferIter ) !==
false );
SwiftFileBackend helper class to page through listings.
string $dir
Storage directory.
string null $bufferAfter
List items after this path.
string $container
Container name.
__construct(SwiftFileBackend $backend, $fullCont, $dir, array $params)
pageFromList( $container, $dir, &$after, $limit, array $params)
Get the given list portion (page)
array $bufferIter
List of path or (path,stat array) entries.
SwiftFileBackend $backend
Class for an OpenStack Swift (or Ceph RGW) based file backend.