projectsService = $projectsService; $this->menuService = $menuService; } /** * Renders the project hub project list partial. */ public function get(): void { $clientId = (isset($_GET['client']) === true && $_GET['client'] != '') ? (int) $_GET['client'] : null; $hubData = $this->projectsService->getProjectHubData(session('userdata.id'), $clientId); $currentUrlPath = BASE_URL.'/'.str_replace('.', '/', Frontcontroller::getCurrentRoute()); $this->tpl->assign('projectTypeAvatars', $this->menuService->getProjectTypeAvatars()); $this->tpl->assign('currentUrlPath', $currentUrlPath); $this->tpl->assign('currentClientName', $hubData['currentClientName']); $this->tpl->assign('currentClient', $hubData['currentClient']); $this->tpl->assign('clients', $hubData['clients']); $this->tpl->assign('allProjects', $hubData['allProjects']); } }