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