class SearchResults extends 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 from MetadataCollection
protected ModelCollection $items List of Files/Folder Metadata from MetadataCollection
protected string $cursor Cursor for pagination and updates from MetadataCollection
protected boolean $hasMoreItems If more items are available from MetadataCollection

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

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

__construct(array $data)

Create a new Metadata Collection

Parameters

array $data Collection Data

string getCollectionItemsKey()

Get the Collection Items Key

Return Value

string

string getCollectionHasMoreItemsKey()

Get the Collection has-more-items Key

Return Value

string

string getCollectionCursorKey()

Get the Collection Cursor Key

Return Value

string

array getData()

Get the Collection data

Return Value

array

ModelCollection getItems()

Get the Items

Return Value

ModelCollection

string getCursor()

Get the cursor

Return Value

string

boolean hasMoreItems()

More items are available

Return Value

boolean

at line line 35
protected void processItems(array $items)

Process items and cast them to their respective Models

Parameters

array $items Unprocessed Items

Return Value

void