PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
3rdparty
/
dropbox
/
src
/
Models
<?php namespace Kunnu\Dropbox\Models; class SearchResults extends MetadataCollection { /** * Collection Items Key * * @const string */ const COLLECTION_ITEMS_KEY = 'matches'; /** * Collection Cursor Key * * @const string */ const COLLECTION_CURSOR_KEY = 'start'; /** * Collection has-more-items Key * * @const string */ const COLLECTION_HAS_MORE_ITEMS_KEY = 'more'; /** * Process items and cast them * to their respective Models * * @param array $items Unprocessed Items * * @return void */ protected function processItems(array $items) { $processedItems = []; foreach ($items as $entry) { if (isset($entry['metadata']) && is_array($entry['metadata'])) { $processedItems[] = new SearchResult($entry); } } $this->items = new ModelCollection($processedItems); } }
[-] FolderMetadata.php
[edit]
[-] MediaMetadata.php
[edit]
[-] File.php
[edit]
[-] ModelInterface.php
[edit]
[+]
..
[-] ModelCollection.php
[edit]
[-] VideoMetadata.php
[edit]
[-] DeletedMetadata.php
[edit]
[-] MediaInfo.php
[edit]
[-] Thumbnail.php
[edit]
[-] Account.php
[edit]
[-] AccountList.php
[edit]
[-] AccessToken.php
[edit]
[-] FolderSharingInfo.php
[edit]
[-] CopyReference.php
[edit]
[-] BaseModel.php
[edit]
[-] SearchResult.php
[edit]
[-] SearchResults.php
[edit]
[-] FileSharingInfo.php
[edit]
[-] ModelFactory.php
[edit]
[-] TemporaryLink.php
[edit]
[-] MetadataCollection.php
[edit]
[-] PhotoMetadata.php
[edit]
[-] FileMetadata.php
[edit]