Example #1
0
 public function AjaxFilesQuota()
 {
     $oAccount = $this->getDefaultAccountFromParam();
     if (!$this->oApiCapability->IsFilesSupported($oAccount)) {
         throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::FilesNotAllowed);
     }
     $oResult = array('Quota' => $this->oApiFilestorage->GetQuota($oAccount));
     return $this->DefaultResponse($oAccount, __FUNCTION__, $oResult);
 }