示例#1
0
 /**
  * @return array
  */
 public function AjaxFoldersGetRelevantInformation()
 {
     $aFolders = $this->getParamValue('Folders', '');
     $sInboxUidnext = $this->getParamValue('InboxUidnext', '');
     if (!is_array($aFolders) || 0 === count($aFolders)) {
         throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::InvalidInputParameter);
     }
     $aResult = array();
     $oAccount = null;
     try {
         $oAccount = $this->getAccountFromParam();
         $oReturnInboxNewData = \ProjectCore\Base\DataByRef::createInstance(array());
         $aResult = $this->oApiMail->getFolderListInformation($oAccount, $aFolders, $sInboxUidnext, $oReturnInboxNewData);
     } catch (\MailSo\Net\Exceptions\ConnectionException $oException) {
         throw $oException;
     } catch (\MailSo\Imap\Exceptions\LoginException $oException) {
         throw $oException;
     } catch (\Exception $oException) {
         \CApi::Log((string) $oException);
     }
     return $this->DefaultResponse($oAccount, __FUNCTION__, array('Counts' => $aResult, 'New' => $oReturnInboxNewData->GetData()));
 }