hasRole("manager") ) { $userID = $user->getId(); $ret = $kdb->query("SELECT testID FROM psyhvel_tests WHERE userID=".$userID); $tests = array(); require_once("Test.php"); while ($t = mysql_fetch_array($ret)) { $tests []= new Test($t['testID']); } $this->tests = $tests; } } function getTests() { return $this->tests; } } ?>