/** * @return array */ public function AjaxFolderSubscribe() { $sFolderFullNameRaw = (string) $this->getParamValue('Folder', ''); $bSetAction = '1' === (string) $this->getParamValue('SetAction', '0'); if (0 === strlen(trim($sFolderFullNameRaw))) { throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::InvalidInputParameter); } $oAccount = $this->getAccountFromParam(); if (!$oAccount->IsEnabledExtension(\CAccount::DisableManageSubscribe)) { $this->oApiMail->FolderSubscribe($oAccount, $sFolderFullNameRaw, $bSetAction); return $this->TrueResponse($oAccount, 'FolderSubscribe'); } return $this->FalseResponse($oAccount, __FUNCTION__); }