get("Survey", array("uid" => $_POST['objectUid'])); if (count($surveyResults) > 0) { $this->loadedSurvey = $surveyResults[0]; } else { var_dump("No surveys found!"); } } else { var_dump("Incorrect or null uid passed!"); } } public function init() { // echo the HTML markup to display the editor on the screen ?>