|
@@ -91,35 +91,22 @@ class DeleteDomainAliasProvider extends BaseDataProvider
|
|
|
public function massDelete()
|
|
public function massDelete()
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * hosting id
|
|
|
|
|
- */
|
|
|
|
|
- $hid = $this->request->get('id');
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * load product configuration
|
|
|
|
|
- */
|
|
|
|
|
- $productManager = new ProductManager();
|
|
|
|
|
- $productManager->loadByHostingId($hid);
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * load kerio manager by hosting id
|
|
|
|
|
- */
|
|
|
|
|
- $service = (new KerioManager())
|
|
|
|
|
- ->getApiByHosting($hid)
|
|
|
|
|
- ->soap
|
|
|
|
|
- ->service()
|
|
|
|
|
- ->deleteDomainAlias();
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
foreach($this->request->get('massActions') as $id)
|
|
foreach($this->request->get('massActions') as $id)
|
|
|
{
|
|
{
|
|
|
- $service->setFormData(['id' => $id]);
|
|
|
|
|
- $result = $service->run();
|
|
|
|
|
|
|
+ logModuleCall(
|
|
|
|
|
+ 'kerioEmail',
|
|
|
|
|
+ __FUNCTION__,
|
|
|
|
|
+ $id,
|
|
|
|
|
+ 'Debug Error',
|
|
|
|
|
+ $this
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
return (new HtmlDataJsonResponse())
|
|
return (new HtmlDataJsonResponse())
|
|
|
->setMessageAndTranslate('massDomainAliasHasBeenDeleted')
|
|
->setMessageAndTranslate('massDomainAliasHasBeenDeleted')
|
|
|
->setStatusSuccess();
|
|
->setStatusSuccess();
|