Esempio n. 1
0
 /**
  * @return array
  */
 public function AjaxFoldersUpdateOrder()
 {
     $aFolderList = $this->getParamValue('FolderList', null);
     if (!is_array($aFolderList)) {
         throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::InvalidInputParameter);
     }
     $oAccount = $this->getAccountFromParam();
     if ($oAccount->isExtensionEnabled(\CAccount::DisableFoldersManualSort)) {
         return $this->FalseResponse($oAccount, __FUNCTION__);
     }
     return $this->DefaultResponse($oAccount, __FUNCTION__, $this->oApiMail->updateFoldersOrder($oAccount, $aFolderList));
 }