55 $table->column(
"Name",
"<a href=\"/admin/question_type_form?question_type_id={question_type_id}\">{name}</a>")
57 ->column(
"Class Name",
"{class_name}")
60 $table->emptyMessage =
"There are no question types defined.";
69 redirect(
"/admin/question_types");
75 <p>Defines the
set of question types available
for questionnaires and surveys.</p>
76 <form
style=
'display: inline' name=
"question_type_form" method=
"POST" action=
"">
81 <br><br><input
class=
'button' type=
"submit" name=
"reorder" value=
" Save Order "/>&
nbsp;&
nbsp;
82 <a
class=
'button' href=
'/admin/question_type_form'>Add a
Question Type</a>
87 return "<input type='text' name='question_type_{$questionType->question_type_id}'
88 value='{$questionType->sort_order}' size='4'/>";
104 if (!strncmp(
$name,
"question_type_", 14))
108 $questionType->filter =
new InclusionFilter(
"question_type_id",
"sort_order");
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
$method
Pull out a simple reference to the request method.
formatSortOrderInputField($questionType)
if($method=="POST") $script