/** * @return array */ public function AjaxFolderClear() { $sFolderFullNameRaw = (string) $this->getParamValue('Folder', ''); if (0 === strlen(trim($sFolderFullNameRaw))) { throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::InvalidInputParameter); } $oAccount = $this->getAccountFromParam(); $this->oApiMail->FolderClear($oAccount, $sFolderFullNameRaw); return $this->TrueResponse($oAccount, __FUNCTION__); }