getRequestValue('id'))->first(); $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0'); try { $api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword')); $domainID = $api->getDomainId($this->getWhmcsParamByKey('domain')); } catch (KerioApiException $error) { logModuleCall( 'kerioEmail', __FUNCTION__, $error, 'Debug Error', $error->getMessage() ); return ['error' => $error->getMessage()]; } $this->data['domainId'] = $domainID; $this->data['domain'] = $this->getWhmcsParamByKey('domain'); } public function update() { } public function create() { /** * hosting id */ $hid = $this->request->get('id'); logModuleCall( 'kerioEmail', __FUNCTION__, $this, 'Debug Error', $this->formData ); return (new HtmlDataJsonResponse())->setMessageAndTranslate('domainAliasHasBeenCreated')->setStatusSuccess(); } }