- Timestamp:
- 02/24/12 16:17:56 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui
- Property svn:mergeinfo changed
/Dev/branches/jos-branch merged: 285-287
- Property svn:mergeinfo changed
-
Dev/branches/rest-dojo-ui/server/classes/models/SurveyInstance.php
r274 r289 26 26 * @param type $answersets: A list of answersets. 27 27 */ 28 public function __construct($uid, $survey, $starttime, $endtime, $open, $presetanswers, $answersets)28 public function __construct($uid = null, $survey = null, $starttime = null, $endtime = null, $open = null, $presetanswers = null, $answersets = null) 29 29 { 30 30 if(!isset($uid)) … … 242 242 } 243 243 244 public static function create($obj) { 245 return new SurveyInstance($obj->uid, $obj->survey, $obj->starttime, 246 $obj->endtime, $obj->open, $obj->presetanswers, 247 $obj->answersets); 248 } 244 /** 245 * Creates a new SurveyInstance object out of the given object. 246 */ 247 public static function create($obj) 248 { 249 return new Survey($obj->uid, $obj->survey, $obj->starttime, $obj->endtime, $obj->open, $obj->presetanswers, $obj->answersets); 250 } 249 251 250 252 }
Note: See TracChangeset
for help on using the changeset viewer.