public function getSelectedHierarchy() { if (isset($_SESSION['account']->RoleLevel)) { $rl = new RoleLevel(); $rl->getByID($_SESSION['account']->RoleLevel); $_SESSION['account']->RoleLevelObj = $rl; } if (isset($_SESSION['account']->RoleOrganization)) { $rl = new RoleOrganization(); $rl->getByID($_SESSION['account']->RoleOrganization); $_SESSION['account']->RoleOrganizationObj = $rl; } }