Class Question

Description

Description of Question

  • author: jkraaijeveld

Located in /models/Question.php (line 11)

ResearchToolObject
   |
   --Question
Variable Summary
 mixed $answers
 mixed $category
 mixed $code
 mixed $description
 mixed $title
 mixed $type
Method Summary
 static void create (type $obj)
 static void get (type $arguments)
 Question __construct ([type $uid = null], [ $code = null], [type $title = null], [type $type = null], [type $description = null], [type $category = null], [type $answers = null])
 void save ()
Variables
mixed $answers (line 30)
  • access: public
mixed $category (line 29)
  • access: public
mixed $code (line 25)
  • access: public
mixed $description (line 28)
  • access: public
mixed $title (line 26)
  • access: public
mixed $type (line 27)
  • access: public

Inherited Variables

Inherited from ResearchToolObject

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

static function create()

  • access: public
void create (type $obj)
  • type $obj: : The object which should be converted to a Question
static get (line 120)

Get the questions corresponding to the arguments.

  • access: public
void get (type $arguments)
  • type $arguments: : An array having one ore more of the following elements: 'uid', 'code', 'title', 'type', 'description', 'category', 'definedanswers'.
Constructor __construct (line 42)

Constructor for a Question. $uid equals the corresponding code.

  • access: public
Question __construct ([type $uid = null], [ $code = null], [type $title = null], [type $type = null], [type $description = null], [type $category = null], [type $answers = null])
  • type $uid
  • type $title
  • type $type
  • type $description
  • type $category
  • type $answers
  • $code
save (line 61)

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