REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.50 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/include/stripe/lib/Util/AutoPagingIterator.php
Text
Base64
<?php namespace Stripe\Util; class AutoPagingIterator implements \Iterator { private $lastId = null; private $page = null; private $pageOffset = 0; private $params = []; public function __construct($collection, $params) { $this->page = $collection; $this->params = $params; } public function rewind() { // Actually rewinding would require making a copy of the original page. } public function current() { $item = current($this->page->data); $this->lastId = $item !== false ? $item['id'] : null; return $item; } public function key() { return key($this->page->data) + $this->pageOffset; } public function next() { $item = next($this->page->data); if ($item === false) { // If we've run out of data on the current page, try to fetch another one // and increase the offset the new page would start at $this->pageOffset += count($this->page->data); if ($this->page['has_more']) { $this->params = array_merge( $this->params ?: [], ['starting_after' => $this->lastId] ); $this->page = $this->page->all($this->params); } else { return false; } } } public function valid() { $key = key($this->page->data); $valid = ($key !== null && $key !== false); return $valid; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AutoPagingIterator.php
1.50 KB
lrw-r--r--
2024-05-28 15:48:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CaseInsensitiveArray.php
1.63 KB
lrw-r--r--
2024-05-28 15:48:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DefaultLogger.php
488 B
lrw-r--r--
2024-05-28 15:48:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LoggerInterface.php
1.15 KB
lrw-r--r--
2024-05-28 15:48:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RandomGenerator.php
800 B
lrw-r--r--
2024-05-28 15:48:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RequestOptions.php
3.14 KB
lrw-r--r--
2024-05-28 15:48:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Set.php
745 B
lrw-r--r--
2024-05-28 15:48:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Util.php
13.83 KB
lrw-r--r--
2024-05-28 15:48:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).