PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
3rdparty
/
dropbox
/
src
/
Models
<?php namespace Kunnu\Dropbox\Models; use Kunnu\Dropbox\DropboxFile; class File extends BaseModel { /** * The file contents * * @var string|DropboxFile */ protected $contents; /** * File Metadata * * @var \Kunnu\Dropbox\Models\FileMetadata */ protected $metadata; /** * Create a new File instance * * @param array $data * @param string|DropboxFile $contents */ public function __construct(array $data, $contents) { parent::__construct($data); $this->contents = $contents; $this->metadata = new FileMetadata($data); } /** * The metadata for the file * * @return \Kunnu\Dropbox\Models\FileMetadata */ public function getMetadata() { return $this->metadata; } /** * Get the file contents * * @return string */ public function getContents() { if ($this->contents instanceof DropboxFile) { return $this->contents->getContents(); } return $this->contents; } }
[-] 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]