actionElementId), true); logModuleCall( 'kerioEmail', __FUNCTION__, $this->actionElementId, 'Debug Error', $params ); $this->data['id'] = $params['accId']; $this->data['alias'] = $params['alias']; } public function update() { // TODO: Implement update() method. } public function delete() { /** * hosting id */ $hid = $this->request->get('id'); /** * product manager allow to check product settings */ $productManager = new ProductManager(); $productManager->loadByHostingId($hid); return (new HtmlDataJsonResponse())->setMessageAndTranslate('emailAliasHasBeenDeleted')->setStatusSuccess(); } public function massDelete() { /** * hosting id */ $hid = $this->request->get('id'); /** * product manager allow to check product settings */ $productManager = new ProductManager(); $productManager->loadByHostingId($hid); /** * * get soap create alias service * set service configuration */ $service = (new KerioManager()) ->getApiByHosting($hid) ->soap ->service() ->deleteAccountAlias(); foreach ($this->request->get('massActions') as $endodedData) { $data = json_decode(base64_decode($endodedData), true); $data['id'] = $data['accId']; $service->setFormData($data); $result = $service->run(); } return (new HtmlDataJsonResponse())->setMessageAndTranslate('massEmailAliasHasBeenDeleted')->setStatusSuccess(); } }