From 756519ee4688efd5e395c1790e7781ededb5dd03 Mon Sep 17 00:00:00 2001 From: "Mr. Timothy G Webb Sr" Date: Fri, 27 Nov 2020 01:25:46 -0500 Subject: [PATCH] Update Service.php --- src/bb-modules/Servicehosting/Service.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bb-modules/Servicehosting/Service.php b/src/bb-modules/Servicehosting/Service.php index 75dbafe07..9dd15c7f5 100644 --- a/src/bb-modules/Servicehosting/Service.php +++ b/src/bb-modules/Servicehosting/Service.php @@ -392,13 +392,13 @@ class Service implements InjectionAwareInterface return $username; } - public function _getAM(\Model_ServiceHosting $model, \Model_ServiceHostingHp $hp = null) + public function _getAM(\Model_ServiceHostingServer $model, \Model_ServiceHostingHp $hp = null) { if(null === $hp) { $hp = $this->di['db']->getExistingModelById('ServiceHostingHp', $model->service_hosting_hp_id, 'Hosting plan not found'); } - $server = $this->di['db']->getExistingModelById('ServiceHosting', $model->service_hosting_server_id, 'Server not found'); + $server = $this->di['db']->getExistingModelById('ServiceHostingServer', $model->service_hosting_server_id, 'Server not found'); $c = $this->di['db']->getExistingModelById('Client', $model->client_id, 'Client not found'); $hp_config = $hp->config; @@ -462,7 +462,7 @@ class Service implements InjectionAwareInterface ); } - public function toHostingServerApiArray(\Model_ServiceHosting $model, $deep = false, $identity = null) + public function toHostingServerApiArray(\Model_ServiceHostingServer $model, $deep = false, $identity = null) { list($cpanel_url, $whm_url) = $this->getMangerUrls($model); $result = array( @@ -621,7 +621,7 @@ class Service implements InjectionAwareInterface public function createServer($name, $ip, $manager, $data) { - $model = $this->di['db']->dispense('ServiceHosting'); + $model = $this->di['db']->dispense('ServiceHostingServer'); $model->name = $name; $model->ip = $ip; @@ -660,7 +660,7 @@ class Service implements InjectionAwareInterface return true; } - public function updateServer(\Model_ServiceHosting $model, array $data) + public function updateServer(\Model_ServiceHostingServer $model, array $data) { $model->name = $this->di['array_get']($data, 'name', $model->name); $model->ip = $this->di['array_get']($data, 'ip', $model->ip);