/** * @return array */ public function AjaxFoldersUpdateOrder() { $aFolderList = $this->getParamValue('FolderList', null); if (!is_array($aFolderList)) { throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::InvalidInputParameter); } $oAccount = $this->getAccountFromParam(); if ($oAccount->IsEnabledExtension(\CAccount::DisableFoldersManualSort)) { return $this->FalseResponse($oAccount, __FUNCTION__); } return $this->DefaultResponse($oAccount, __FUNCTION__, $this->oApiMail->FoldersOrderUpdate($oAccount, $aFolderList)); }