Changeset 75 for Dev/trunk/classes/Survey.php
- Timestamp:
- 08/08/11 15:12:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/Survey.php
r57 r75 16 16 public $description; 17 17 public $questions; 18 19 public $results; 18 20 19 21 public function __construct($id, $title, $description = null) { … … 22 24 $this->description = $description; 23 25 $this->questions = array(); 26 27 $this->results = null; 24 28 } 29 30 public function addQuestion($question) 31 { 32 array_push($this->questions, $question); 33 } 34 35 public function setResults($surveyResults) 36 { 37 $this->results = $surveyResults; 38 } 25 39 26 40 public static function getSurvey($info) { … … 56 70 return $survey; 57 71 } 72 73 /** 74 * TODO: Should return Results-object from reading RDF-database 75 * @param type $surveyID 76 */ 77 public static function getResults($surveyID) 78 { 79 80 } 58 81 59 82 }
Note: See TracChangeset
for help on using the changeset viewer.