Property | Type | Description | |
---|---|---|---|
$api | Api object | ||
$container | array | Array of cached file elements | |
$count | integer | Total count of files | |
$fullyLoaded | boolean | Indicates if all files were loaded from server | |
$limit | integer | Desired count of elements | |
$options | array | Options for requests | |
$position | integer | Current iterator position | |
$requestLimit | integer | Limit for requests | |
$reverse | boolean | Determines direction of file browsing and which URL param is used: 'from' or 'to' |
Method | Description | |
---|---|---|
__construct ( |
Constructor | |
count ( ) | ||
current ( ) | ||
key ( ) | ||
next ( ) | ||
offsetExists ( $offset ) | ||
offsetGet ( $offset ) | ||
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) | ||
rewind ( ) | ||
valid ( ) |
Method | Description | |
---|---|---|
exists ( integer $offset = null ) : boolean | Check if element exists. Uses current position if no offset provided | |
isFullyLoaded ( ) : boolean | Check if all elements are loaded into iterator | |
loadChunk ( ) | Load elements chunk from server |
public __construct ( |
||
$api | Uploadcare class instance | |
$options | array | Request parameters and filters |
protected array $container | ||
return | array |
protected bool $fullyLoaded | ||
return | boolean |
protected bool $reverse | ||
return | boolean |