PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
3rdparty
/
dropbox
/
src
/
Models
<?php namespace Kunnu\Dropbox\Models; class BaseModel implements ModelInterface { /** * Model Data * * @var array */ protected $data; /** * Create a new Model instance * * @param array $data */ public function __construct(array $data) { $this->data = $data; } /** * Get the Model data * * @return array */ public function getData() { return $this->data; } /** * Get Data Property * * @param string $property * * @return mixed */ public function getDataProperty($property) { return isset($this->data[$property]) ? $this->data[$property] : null; } /** * Handle calls to undefined properties. * Check whether an item with the key, * same as the property, is available * on the data property. * * @param string $property * * @return mixed|null */ public function __get($property) { if (array_key_exists($property, $this->getData())) { return $this->getData()[$property]; } return null; } /** * Handle calls to undefined properties. * Sets an item with the defined value * on the data property. * * @param string $property * @param string $value * * @return mixed|null */ public function __set($property, $value) { $this->data[$property] = $value; } }
[-] 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]