Class Answer

Description

Description of Answer

  • author: jkraaijeveld

Located in /models/Answer.php (line 12)

ResearchToolObject
   |
   --Answer
Variable Summary
 static mixed $filename
 mixed $question
 mixed $values
Method Summary
 static void create (type $obj)
 static void get ( $arguments, type $arguments:)
 Answer __construct ([type $uid = null], [type $question = null], [type $values = null])
 void evaluate ()
 void save ()
Variables
static mixed $filename = 'data/results/answers.rdf' (line 23)
  • access: public
mixed $question (line 25)
  • access: public
mixed $values (line 26)
  • access: public

Inherited Variables

Inherited from ResearchToolObject

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

static function create()

  • access: public
void create (type $obj)
  • type $obj: : The object which should be converted to an Answer
static get (line 67)

function get()

  • access: public
void get ( $arguments, type $arguments:)
  • type $arguments:: An array having one or more of the following elements: 'uid', 'question', 'values'.
  • $arguments
Constructor __construct (line 34)

Constructor for an Answer object

  • access: public
Answer __construct ([type $uid = null], [type $question = null], [type $values = null])
  • type $uid: : The uid of the Answer object.
  • type $question: : The Question object this Answer answers.
  • type $values: : An array of strings, containing the answers.
evaluate (line 48)

function evaluate() Evaluates the references and fills in the objects for them instead.

  • access: public
void evaluate ()

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

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:50 +0000 by phpDocumentor 1.4.3