88 $questions = $this->item->Questions(
"ORDER BY $sort_field");
105 if($this->getXrefClass())
111 $relation =
"Questions";
115 return $this->item->$relation(
"ORDER BY $sort_field");
120 return ($this->getXrefClass()) ? $this->getXrefClass() : $this->getQuestionClass();
132 return (
$obj->hasField(
"sort_order")) ?
"sort_order" :
"question_number";
140 $qClass = $this->getQuestionClass();
157 $class = $this->getAnswerClass();
159 return $obj->getPrimaryKey();
164 return $this->item->getPrimaryKey();
204 if (
$question->question_id == $q->question_id)
return $idx;
248 return $question->format(
"<input type='text' name=\"question_{$question->$pk}\"
249 value=\"{question_name}\" size=\"40\"/>");
Questionnaire/Survey Implementation instructions.
AbstractQuestionnaireManager()
getQuestionNumber($question)
Called by QuestionRenderers from QuestionnaireForm Given an instance of a question,...
getQuestionKey()
Returns the primar key name of the question obj.
getSortableItems()
Retrieves the table that has the question sort order field either Question or a QuestionXref.
getQuestions()
Retrieves questions through the questionnaire or survey DataItem object.
static using()
Import the datamodels, views and manifest for the specified component(s).
static create($parent, $question)
Provides static function support for Questionnaire Manager methods that are shared among types Questi...
static setQuestionNumbers($item, $questions)
Given an array of question objects, set the question_number field or pseudo field so that Question Re...
static getQuestionNumber($item, $questions, $question)
static formatQuestionNameInputField($question)
On the question names dialog, format the input field for editing the question names.