Esempio n. 1
0
 /**
  * @return array
  */
 public function AjaxMessagesSetAllSeen()
 {
     $sFolderFullNameRaw = (string) $this->getParamValue('Folder', '');
     $bSetAction = '1' === (string) $this->getParamValue('SetAction', '0');
     if (0 === strlen(trim($sFolderFullNameRaw))) {
         throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::InvalidInputParameter);
     }
     $oAccount = $this->getAccountFromParam();
     $this->oApiMail->setMessageFlag($oAccount, $sFolderFullNameRaw, array('1'), \MailSo\Imap\Enumerations\MessageFlag::SEEN, $bSetAction ? \EMailMessageStoreAction::Add : \EMailMessageStoreAction::Remove, true);
     return $this->TrueResponse($oAccount, 'MessagesSetAllSeen');
 }