Esempio n. 1
0
 /**
  * @return array
  */
 public function AjaxMessagesGetFlags()
 {
     $sFolderFullNameRaw = (string) $this->getParamValue('Folder', '');
     $aUids = $this->getParamValue('Uids', array());
     if (0 === strlen(trim($sFolderFullNameRaw)) || !is_array($aUids)) {
         throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::InvalidInputParameter);
     }
     $oAccount = $this->getAccountFromParam();
     $aMessageFlags = $this->oApiMail->getMessagesFlags($oAccount, $sFolderFullNameRaw, $aUids);
     return $this->DefaultResponse($oAccount, __FUNCTION__, $aMessageFlags);
 }