Beispiel #1
0
if(!class_exists('Eden_Google_Drive')){class Eden_Google_Drive extends Eden_Google_Base{const URL_DRIVE_ABOUT='https://www.googleapis.com/drive/v2/about';const URL_DRIVE_APPS='hhttps://www.googleapis.com/drive/v2/apps';public static function i(){return self::_getMultiple(__CLASS__);}public function __construct($token){Eden_Google_Error::i()->argument(1,'string');$this->_token=$token;}public function changes(){return Eden_Google_Drive_Changes::i($this->_token);}public function children(){return Eden_Google_Drive_Children::i($this->_token);}public function files(){return Eden_Google_Drive_Files::i($this->_token);}public function getAbout(){return $this->_getResponse(self::URL_DRIVE_ABOUT);}public function getApps(){return $this->_getResponse(self::URL_DRIVE_APPS);}public function parents(){return Eden_Google_Drive_Parent::i($this->_token);}public function permissions(){return Eden_Google_Drive_Permissions::i($this->_token);}public function revisions(){return Eden_Google_Drive_Revisions::i($this->_token);}}}
Beispiel #2
0
 /**
  * Returns Google Drive parent
  *
  * @return Eden_Google_Drive_Parent
  */
 public function parents()
 {
     return Eden_Google_Drive_Parent::i($this->_token);
 }
Beispiel #3
0
 public function parents()
 {
     Eden_Google_Error::i()->argument(1, 'string');
     return Eden_Google_Drive_Parent::i($this->_token);
 }