Changeset 286 for Dev/branches


Ignore:
Timestamp:
02/24/12 10:10:48 (13 years ago)
Author:
jkraaijeveld
Message:

[Server] Added create() to SurveyInstance?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/jos-branch/server/classes/models/SurveyInstance.php

    r285 r286  
    242242        }
    243243
     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        }
     251
    244252}
    245253
Note: See TracChangeset for help on using the changeset viewer.