/** * @return array */ public function AjaxFolderSubscribe() { $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(); if (!$oAccount->isExtensionEnabled(\CAccount::DisableManageSubscribe)) { $this->oApiMail->subscribeFolder($oAccount, $sFolderFullNameRaw, $bSetAction); return $this->TrueResponse($oAccount, __FUNCTION__); } return $this->FalseResponse($oAccount, __FUNCTION__); }