<?php $db = Database::getInstance(); if (!isset($_SESSION['client_id'])) { $_SESSION['client_id'] = $db->getDefaultClientIdForLoggedInUser(); } $inputArray = $db->getActionsByProjectID(1); $newContainer = new ProjectContainer("@inbox", $inputArray, 1); $newContainer->displayContainer();
<?php $db = Database::getInstance(); $projectsArray = $db->getProjectsInScope(); $clientDefaultId = $db->getDefaultClientIdForLoggedInUser(); if ($projectsArray) { foreach ($projectsArray as $projectRow) { if ($_SESSION['client_id'] == $projectRow->client_id() || $_SESSION['client_id'] == 1) { $inputArray = $db->getActionsByProjectID($projectRow->project_id()); $newContainer = new ProjectContainer($projectRow->name(), $inputArray, $projectRow->project_id()); $newContainer->displayContainer($projectRow); } } }