Свойство | Тип | Описание | |
---|---|---|---|
$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' |
Метод | Описание | |
---|---|---|
__construct ( |
Constructor | |
count ( ) | ||
current ( ) | ||
key ( ) | ||
next ( ) | ||
offsetExists ( $offset ) | ||
offsetGet ( $offset ) | ||
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) | ||
rewind ( ) | ||
valid ( ) |
Метод | Описание | |
---|---|---|
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 | ||
Результат | array |
protected bool $fullyLoaded | ||
Результат | boolean |
protected bool $reverse | ||
Результат | boolean |