Changeset 112 for Dev/trunk/classes/Question.php
- Timestamp:
- 09/19/11 16:29:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/Question.php
r98 r112 11 11 * @author fpvanagthoven 12 12 */ 13 class Question { 14 public $id; 13 class Question { 15 14 public $code; 16 15 public $title; … … 18 17 public $description; 19 18 public $answers; // format answers['#'] 19 public $category; 20 20 21 public function __construct($ id, $code, $title, $type, $description = null)21 public function __construct($code, $title, $type = null, $description = null) 22 22 { 23 $this->id = $id;24 23 $this->code = $code; 25 24 $this->title = $title; … … 28 27 $this->answers = array(); 29 28 } 29 30 /* reminder that constructor doesn't contain category haha */ 31 public function setCategory($category) 32 { 33 $this->category = $category; 34 } 35 36 public static function getQuestion($questionInfo) 37 { 38 39 } 30 40 31 41 }
Note: See TracChangeset
for help on using the changeset viewer.