Class SurveyInstance

Description

Description of SurveyInstance

  • author: jkraaijeveld

Located in /models/SurveyInstance.php (line 9)

ResearchToolObject
   |
   --SurveyInstance
Variable Summary
 static mixed $filename
 mixed $answersets
 mixed $endtime
 mixed $open
 mixed $starttime
 mixed $survey
Method Summary
 static void create ( $obj)
 static void get ( $arguments, type $arguments:)
 SurveyInstance __construct ([ $uid = null], [ $survey = null], [ $starttime = null], [ $endtime = null], [ $open = 0], [ $presetanswers = null], [ $answersets = null], type $uid:, type $starttime:, type $endtime:, type $open:, type $presetanswers:, type $answersets:)
 void evaluate ()
 void save ()
Variables
static mixed $filename = 'data/surveys/surveyinstances.rdf' (line 10)
  • access: public
mixed $answersets (line 17)
  • access: public
mixed $endtime (line 14)
  • access: public
mixed $open (line 15)
  • access: public
mixed $presetanswers (line 16)
  • access: public
mixed $starttime (line 13)
  • access: public
mixed $survey (line 12)
  • access: public

Inherited Variables

Inherited from ResearchToolObject

ResearchToolObject::$uid
Methods
static create (line 233)

Creates a new SurveyInstance object out of the given object.

  • access: public
void create ( $obj)
  • $obj
static get (line 169)

function get($arguments) Gets the array of SurveyInstance objects belonging tothe arguments supplied.

  • access: public
void get ( $arguments, type $arguments:)
  • type $arguments:: An array containing zero or more of the following keys: 'uid', 'of_survey', 'starttime', 'endtime', 'open', 'preset_answers', 'answersets'
  • $arguments
Constructor __construct (line 28)

Constructor for a SurveyInstance object

  • access: public
SurveyInstance __construct ([ $uid = null], [ $survey = null], [ $starttime = null], [ $endtime = null], [ $open = 0], [ $presetanswers = null], [ $answersets = null], type $uid:, type $starttime:, type $endtime:, type $open:, type $presetanswers:, type $answersets:)
  • type $uid:: The UID of the survey instance object.
  • type $starttime:: The starttime of the survey round.
  • type $endtime:: The endtime of the survey round.
  • type $open:: A boolean to specify whether the survey is open.
  • type $presetanswers:: A list of answers which are preset for everyone doing the survey.
  • type $answersets:: A list of answersets.
  • $uid
  • $survey
  • $starttime
  • $endtime
  • $open
  • $presetanswers
  • $answersets
evaluate (line 49)

function evaluate()

Evaluates the references in this object

  • access: public
void evaluate ()

Redefinition of:
ResearchToolObject::evaluate()
save (line 100)

function save() Saves the current object into the database.

  • access: public
void save ()

Inherited Methods

Inherited From ResearchToolObject

 ResearchToolObject::createArguments()
 ResearchToolObject::evaluate()
 ResearchToolObject::getUid()
 ResearchToolObject::load()
 ResearchToolObject::stripUri()

Documentation generated on Thu, 01 Mar 2012 15:13:52 +0000 by phpDocumentor 1.4.3