Esempio n. 1
0
 public function AjaxFilesPublicLinkDelete()
 {
     $mResult = false;
     $oAccount = $this->getDefaultAccountFromParam();
     if (!$this->oApiCapability->isFilesSupported($oAccount)) {
         throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::FilesNotAllowed);
     }
     $sType = $this->getParamValue('Type');
     $sPath = $this->getParamValue('Path');
     $sName = $this->getParamValue('Name');
     $mResult = $this->oApiFilestorage->deletePublicLink($oAccount, $sType, $sPath, $sName);
     return $this->DefaultResponse($oAccount, __FUNCTION__, $mResult);
 }