/** * @return array */ public function AjaxMessageDelete() { $sFolderFullNameRaw = (string) $this->getParamValue('Folder', ''); $aUids = \ProjectSeven\Base\Utils::ExplodeIntUids((string) $this->getParamValue('Uids', '')); if (0 === strlen(trim($sFolderFullNameRaw)) || !is_array($aUids) || 0 === count($aUids)) { throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::InvalidInputParameter); } $oAccount = $this->getAccountFromParam(); $this->oApiMail->MessageDelete($oAccount, $sFolderFullNameRaw, $aUids); return $this->TrueResponse($oAccount, __FUNCTION__); }