view = $view; } /** * returns string/HTML integration code */ public function getHTML() { $this->viewToHtml(); return $this->HTMLData; } /** * transforms integration data to string to be integrated in WHMCS template */ protected function viewToHtml() { if ($this->view instanceof \ModulesGarden\Servers\ProxmoxVps\Core\UI\View) { $resp = $this->view->getResponse(); $integrationPageController = DependencyInjection::call(Integration::class); $integrationPageController->setControllerResult($resp); $this->HTMLData = $integrationPageController->execute(); return true; } if (is_string($this->view)) { $this->HTMLData = $this->view; return true; } $this->HTMLData = ''; } }