data['id'] = $this->actionElementId; } public function update() { // TODO: Implement update() method. } public function delete() { logModuleCall( 'kerioEmail', __FUNCTION__, $this->formData, 'Debug Data', $this->data ); return (new HtmlDataJsonResponse())->setMessageAndTranslate('ressourceHasBeenDeleted')->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 domain service */ $service =(new KerioManager()) ->getApiByHosting($hid) ->soap ->service() ->deleteRessource(); /** * */ foreach($this->request->get('massActions') as $id) { $service->setFormData(['id' => $id]); $result = $service->run(); } return (new HtmlDataJsonResponse())->setMessageAndTranslate('massRessourceHasBeenDeleted')->setStatusSuccess(); } }