- Timestamp:
- 01/18/12 16:39:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/jos-branch/classes/widgets/SurveyEditorWidget.php
r235 r238 15 15 16 16 public function __construct() { 17 17 // Nothing yet 18 18 } 19 19 20 20 public function handlePost() { 21 21 // Get POSTed data and store variables to class instance properties 22 22 23 23 if (isset($_POST['objectUid']) && !empty($_POST['objectUid'])) { 24 24 $surveyResults = Survey::get(array("uid" => $_POST['objectUid'])); 25 25 if (!empty($surveyResults)) { 26 26 $this->loadedSurvey = $surveyResults[0]; 27 $this->loadedSurvey->evaluate(); 27 28 } else { 28 29 die("No surveys found!");
Note: See TracChangeset
for help on using the changeset viewer.