PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
3rdparty
/
dropbox
/
src
/
Models
<?php namespace Kunnu\Dropbox\Models; use DateTime; class CopyReference extends BaseModel { /** * The expiration date of the copy reference * * @var DateTime */ protected $expires; /** * The copy reference * * @var string */ protected $reference; /** * File or Folder Metadata * * @var \Kunnu\Dropbox\Models\FileMetadata|\Kunnu\Dropbox\Models\FolderMetadata */ protected $metadata; /** * Create a new CopyReference instance * * @param array $data */ public function __construct(array $data) { parent::__construct($data); $this->expires = new DateTime($this->getDataProperty('expires')); $this->reference = $this->getDataProperty('copy_reference'); $this->setMetadata(); } /** * Set Metadata */ protected function setMetadata() { $metadata = $this->getDataProperty('metadata'); if (is_array($metadata)) { $this->metadata = ModelFactory::make($metadata); } } /** * Get the expiration date of the copy reference * * @var DateTime */ public function getExpirationDate() { return $this->expires; } /** * The metadata for the file/folder * * @return \Kunnu\Dropbox\Models\FileMetadata|\Kunnu\Dropbox\Models\FolderMetadata */ public function getMetadata() { return $this->metadata; } /** * Get the copy reference * * @return string */ public function getReference() { return $this->reference; } }
[-] 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]