CMS  Version 3.9
question_type_form.inc File Reference

Go to the source code of this file.

Variables

 $question_type_id = checkNumeric($_GET["question_type_id"])
 
 $questionType = new QuestionType()
 
if($question_type_id) else
 
 $redirect = "/admin/question_types"
 
 $form = new AutoForm($questionType)
 
if($method=="POST") $script = $form->writeScript()
 

Variable Documentation

◆ $form

$form = new AutoForm($questionType)

Definition at line 31 of file question_type_form.inc.

◆ $question_type_id

$question_type_id = checkNumeric($_GET["question_type_id"])

Definition at line 17 of file question_type_form.inc.

◆ $questionType

$questionType = new QuestionType()

Definition at line 19 of file question_type_form.inc.

◆ $redirect

$redirect = "/admin/question_types"

Definition at line 30 of file question_type_form.inc.

◆ $script

if ( $method=="POST") $script = $form->writeScript()

Definition at line 55 of file question_type_form.inc.

◆ else

if ( $question_type_id) else
Initial value:
{
$questionType->sort_order = queryValue(QuestionType, "MAX(sort_order)") + 1

Definition at line 25 of file question_type_form.inc.