public function AjaxFilesCreatePublicLink() { $oAccount = $this->getDefaultAccountFromParam(); if (!$this->oApiCapability->IsFilesSupported($oAccount)) { throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::FilesNotAllowed); } $sType = $this->getParamValue('Type'); $sPath = $this->getParamValue('Path'); $sName = $this->getParamValue('Name'); $sSize = $this->getParamValue('Size'); $bIsFolder = $this->getParamValue('IsFolder', '0') === '1' ? true : false; $mResult = $this->oApiFilestorage->CreatePublicLink($oAccount, $sType, $sPath, $sName, $sSize, $bIsFolder); return $this->DefaultResponse($oAccount, __FUNCTION__, $mResult); }