From 78db73dd44f1837b12d539325a5cf71135777065 Mon Sep 17 00:00:00 2001 From: pmill Date: Wed, 18 May 2016 21:02:32 +0100 Subject: [PATCH 1/2] Added 'alias' as a filter option for DeleteSiteAlias --- src/pmill/Plesk/DeleteSiteAlias.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pmill/Plesk/DeleteSiteAlias.php b/src/pmill/Plesk/DeleteSiteAlias.php index 2a3fb00..46825ff 100644 --- a/src/pmill/Plesk/DeleteSiteAlias.php +++ b/src/pmill/Plesk/DeleteSiteAlias.php @@ -26,6 +26,10 @@ public function __construct($config, $params = array()) $params['filter'] = new Node('name', $params['domain']); } + if (isset($params['alias'])) { + $params['filter'] = new Node('name', $params['alias']); + } + if (isset($params['id'])) { $params['filter'] = new Node('id', $params['id']); } From 7b56f4ecd05588754f1940ef9a2a848221726785 Mon Sep 17 00:00:00 2001 From: pmill Date: Wed, 18 May 2016 21:03:10 +0100 Subject: [PATCH 2/2] Updated readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1734759..718629c 100755 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ Unversioned (13 Apr 2013) * Updated ListSubscriptions to retrieve plan guids * Updated GetServicePlan to accept 'guid' as a filter option +* Updated DeleteSiteAlias to accept 'alias' as a filter option Copyright and License ---------------------