query->question->application->user->respondent->etc queries!) */ if (isset($_POST['uid'])) { if (!empty($_POST['uid'])) { $uid = $_POST['uid']; } else { //$errors[] = "No uid passed!"; } } else { //$errors[] = "Wrong call, no uid property in POST data!"; } $dbi = new DatabaseInterface(); // For the moment only supports sessions as object to get information for! $results = $dbi->get("Session", array("uid" => $uid)); if (count($results) > 0) { if ($results[0] != null) { $returnString = ""; $result = $results[0]; $returnString = $returnString . "Title: $result->title.
"; $length = count($result->pipeline); $returnString = $returnString . "Number of steps: $length
"; $returnString = $returnString . "UID: $uid"; } else { $returnString = "Null error!"; } } else { $returnString = "Non-existing uid!"; } echo $returnString; ?>