CMS  Version 3.9
QuestionType Class Reference

Inherits DataItem.

Public Member Functions

 QuestionType ()
 

Static Public Member Functions

static getQuestionTypeList ()
 

Public Attributes

 $fields
 

Detailed Description

Definition at line 42 of file question_type.inc.

Member Function Documentation

◆ getQuestionTypeList()

static QuestionType::getQuestionTypeList ( )
static

Definition at line 54 of file question_type.inc.

55  {
56  $qTypes = query(QuestionType, "ORDER BY sort_order");
57 
58  if(count($qTypes) > 0)
59  {
60  foreach ($qTypes as $qType)
61  {
62  $qList[$qType->question_type_id] = $qType->name;
63  }
64  }
65 
66  return $qList;
67  }

◆ QuestionType()

QuestionType::QuestionType ( )

Definition at line 69 of file question_type.inc.

70  {
71  $this->table = "question_type";
72  $this->primary_key = "question_type_id";
73 
74  $this->DataItem(func_get_args());
75  }

Member Data Documentation

◆ $fields

QuestionType::$fields
Initial value:
= array(
"question_type_id" => Number,
"name" => String,
"class_name" => String,
"sort_order" => Number,
"options" => Boolean,
"char_limit" => Number,
"num_rows" => Number
)

Definition at line 44 of file question_type.inc.


The documentation for this class was generated from the following file: