Ignore:
Timestamp:
02/24/12 16:17:56 (13 years ago)
Author:
hendrikvanantwerpen
Message:

[merge] svn merge ../jos-branch -r 284:287 .

Location:
Dev/branches/rest-dojo-ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui

  • Dev/branches/rest-dojo-ui/server/classes/models/SurveyInstance.php

    r274 r289  
    2626     * @param type $answersets: A list of answersets.
    2727     */
    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)
    2929    {
    3030        if(!isset($uid))
     
    242242        }
    243243
    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        }
    249251
    250252}
Note: See TracChangeset for help on using the changeset viewer.