MetadataCollection
class MetadataCollection (View source)
Constants
COLLECTION_ITEMS_KEY |
Collection Items Key |
COLLECTION_CURSOR_KEY |
Collection Cursor Key |
COLLECTION_HAS_MORE_ITEMS_KEY |
Collection has-more-items Key |
Properties
protected array | $data | Collection Data | |
protected ModelCollection | $items | List of Files/Folder Metadata | |
protected string | $cursor | Cursor for pagination and updates | |
protected boolean | $hasMoreItems | If more items are available |
Methods
__construct(array $data)
Create a new Metadata Collection
string
getCollectionItemsKey()
Get the Collection Items Key
string
getCollectionHasMoreItemsKey()
Get the Collection has-more-items Key
string
getCollectionCursorKey()
Get the Collection Cursor Key
array
getData()
Get the Collection data
getItems()
Get the Items
string
getCursor()
Get the cursor
boolean
hasMoreItems()
More items are available
void
processItems(array $items)
Process items and cast them to their respective Models
Details
at line line 61
__construct(array $data)
Create a new Metadata Collection
at line line 76
string
getCollectionItemsKey()
Get the Collection Items Key
at line line 86
string
getCollectionHasMoreItemsKey()
Get the Collection has-more-items Key
at line line 96
string
getCollectionCursorKey()
Get the Collection Cursor Key
at line line 106
array
getData()
Get the Collection data
at line line 116
ModelCollection
getItems()
Get the Items
at line line 126
string
getCursor()
Get the cursor
at line line 136
boolean
hasMoreItems()
More items are available
at line line 149
protected void
processItems(array $items)
Process items and cast them to their respective Models