ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestSettingsTemplateConfig Class Reference
+ Inheritance diagram for ilTestSettingsTemplateConfig:
+ Collaboration diagram for ilTestSettingsTemplateConfig:

Public Member Functions

 __construct (ilLanguage $lng)
 init ()
- Public Member Functions inherited from ilSettingsTemplateConfig
 __construct ($a_obj_type)
 Constructor.
 setType ($a_val)
 Set type.
 getType ()
 Get type.
 addHidableTab ($a_tab_id, $a_text)
 Add hidable tabs.
 getHidableTabs ()
 Get hidable tabs.
 addSetting ($a_id, $a_type, $a_text, $a_hidable, $a_length=0, $a_options=array())
 Add setting.
 getSettings ()
 Get settings.

Protected Attributes

 $lng

Private Member Functions

 initLanguage ()
 initHidableTabs ()
 initSettings ()
 addGeneralPropertySettings ()
 addTestIntroProperties ()
 addTestAccessProperties ()
 addTestRunProperties ()
 addQuestionBehaviourProperties ()
 addTestSequenceProperties ()
 addTestFinishProperties ()
 addScoringOptionsProperties ()
 addResultSummaryProperties ()
 addResultDetailsProperties ()
 addResultMiscOptionsProperties ()

Additional Inherited Members

- Data Fields inherited from ilSettingsTemplateConfig
const TEXT = "text"
const SELECT = "select"
const BOOL = "bool"
const CHECKBOX = "check"

Detailed Description

Definition at line 13 of file class.ilTestSettingsTemplateConfig.php.

Constructor & Destructor Documentation

ilTestSettingsTemplateConfig::__construct ( ilLanguage  $lng)
Parameters
ilLanguage$lng

Definition at line 23 of file class.ilTestSettingsTemplateConfig.php.

References $lng.

{
$this->lng = $lng;
}

Member Function Documentation

ilTestSettingsTemplateConfig::addGeneralPropertySettings ( )
private

Definition at line 73 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), ilObjTest\QUESTION_SET_TYPE_DYNAMIC, ilObjTest\QUESTION_SET_TYPE_FIXED, ilObjTest\QUESTION_SET_TYPE_RANDOM, and ilSettingsTemplateConfig\SELECT.

Referenced by initSettings().

{
$this->addSetting(
"use_pool",
$this->lng->txt("test_question_pool_usage"),
true,
0,
array(
1 => $this->lng->txt('test_question_pool_usage_optional'),
0 => $this->lng->txt('test_question_pool_usage_tst_directly')
)
);
$this->addSetting(
"question_set_type",
$this->lng->txt("tst_question_set_type"),
true,
0,
array(
ilObjTest::QUESTION_SET_TYPE_FIXED => $this->lng->txt("tst_question_set_type_fixed"),
ilObjTest::QUESTION_SET_TYPE_RANDOM => $this->lng->txt("tst_question_set_type_random"),
ilObjTest::QUESTION_SET_TYPE_DYNAMIC => $this->lng->txt("tst_question_set_type_dynamic"),
)
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addQuestionBehaviourProperties ( )
private

Definition at line 190 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), ilSettingsTemplateConfig\BOOL, ilSettingsTemplateConfig\CHECKBOX, ilSettingsTemplateConfig\SELECT, and ilSettingsTemplateConfig\TEXT.

Referenced by initSettings().

{
$this->addSetting(
"title_output",
$this->lng->txt("tst_title_output"),
true,
0,
array(
'0' => $this->lng->txt("tst_title_output_full"),
'1' => $this->lng->txt("tst_title_output_hide_points"),
'2' => $this->lng->txt("tst_title_output_no_title"),
)
);
$this->addSetting(
"autosave",
$this->lng->txt("autosave"),
true,
5
);
$this->addSetting(
"chb_shuffle_questions",
$this->lng->txt("tst_shuffle_questions"),
true
);
$this->addSetting(
"offer_hints",
$this->lng->txt("tst_setting_offer_hints_label"),
true
);
$this->addSetting(
"instant_feedback",
$this->lng->txt("tst_instant_feedback"),
true,
0,
array(
'instant_feedback_points' => $this->lng->txt("tst_instant_feedback_results"),
'instant_feedback_generic' => $this->lng->txt("tst_instant_feedback_answer_generic"),
'instant_feedback_specific' => $this->lng->txt("tst_instant_feedback_answer_specific"),
'instant_feedback_solution' => $this->lng->txt("tst_instant_feedback_solution"),
'instant_feedback_answer_fixation' => $this->lng->txt("tst_instant_feedback_fix_usr_answer")
)
);
$this->addSetting(
"obligations_enabled",
$this->lng->txt("tst_setting_enable_obligations_label"),
true
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addResultDetailsProperties ( )
private

Definition at line 438 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), and ilSettingsTemplateConfig\BOOL.

Referenced by initSettings().

{
$this->addSetting(
"solution_details",
$this->lng->txt("tst_show_solution_details"),
false
);
$this->addSetting(
"solution_feedback",
$this->lng->txt("tst_show_solution_feedback"),
true
);
$this->addSetting(
"solution_suggested",
$this->lng->txt("tst_show_solution_suggested"),
true
);
$this->addSetting(
"solution_printview",
$this->lng->txt("tst_show_solution_printview"),
false
);
$this->addSetting(
"highscore_enabled",
$this->lng->txt("tst_highscore_enabled"),
false
);
$this->addSetting(
"solution_signature",
$this->lng->txt("tst_show_solution_signature"),
true
);
$this->addSetting(
"examid_in_test_res",
$this->lng->txt("examid_in_test_res"),
true
);
$this->addSetting(
"exp_sc_short",
$this->lng->txt("tst_exp_sc_short"),
true
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addResultMiscOptionsProperties ( )
private

Definition at line 497 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), ilSettingsTemplateConfig\BOOL, and ilSettingsTemplateConfig\SELECT.

Referenced by initSettings().

{
$this->addSetting(
"anonymity",
$this->lng->txt("tst_anonymity"),
true,
0,
array(
'0' => $this->lng->txt("tst_anonymity_no_anonymization"),
'1' => $this->lng->txt("tst_anonymity_anonymous_test"),
)
);
$this->addSetting(
"enable_archiving",
$this->lng->txt("test_enable_archiving"),
true
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addResultSummaryProperties ( )
private

Definition at line 407 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), ilSettingsTemplateConfig\BOOL, and ilSettingsTemplateConfig\SELECT.

Referenced by initSettings().

{
$this->addSetting(
"results_access_enabled",
$this->lng->txt("tst_results_access_enabled"),
false,
0,
array(
'0' => $this->lng->txt("tst_results_access_never"),
'2' => $this->lng->txt("tst_results_access_always"),
'1' => $this->lng->txt("tst_results_access_finished"),
'3' => $this->lng->txt("tst_results_access_date")
)
);
$this->addSetting(
"grading_status",
$this->lng->txt("tst_results_grading_opt_show_status"),
true
);
$this->addSetting(
"grading_mark",
$this->lng->txt("tst_results_grading_opt_show_mark"),
true
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addScoringOptionsProperties ( )
private

Definition at line 344 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), and ilSettingsTemplateConfig\SELECT.

Referenced by initSettings().

{
$this->addSetting(
"count_system",
$this->lng->txt("tst_text_count_system"),
true,
0,
array(
'0' => $this->lng->txt("tst_count_partial_solutions"),
'1' => $this->lng->txt("tst_count_correct_solutions")
)
);
$this->addSetting(
"mc_scoring",
$this->lng->txt("tst_score_mcmr_questions"),
true,
0,
array(
'0' => $this->lng->txt("tst_score_mcmr_zero_points_when_unanswered"),
'1' => $this->lng->txt("tst_score_mcmr_use_scoring_system")
)
);
$this->addSetting(
"score_cutting",
$this->lng->txt("tst_score_cutting"),
true,
0,
array(
'0' => $this->lng->txt("tst_score_cut_question"),
'1' => $this->lng->txt("tst_score_cut_test")
)
);
$this->addSetting(
"pass_scoring",
$this->lng->txt("tst_pass_scoring"),
true,
0,
array(
'0' => $this->lng->txt("tst_pass_last_pass"),
'1' => $this->lng->txt("tst_pass_best_pass")
)
);
$this->addSetting(
"pass_deletion_allowed",
$this->lng->txt("tst_pass_deletion"),
true,
0,
array(
'0' => $this->lng->txt("tst_pass_deletion_not_allowed"),
'1' => $this->lng->txt("tst_pass_deletion_allowed")
)
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addTestAccessProperties ( )
private

Definition at line 120 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), and ilSettingsTemplateConfig\BOOL.

Referenced by initSettings().

{
$this->addSetting(
"chb_starting_time",
$this->lng->txt("tst_starting_time"),
false
);
$this->addSetting(
"chb_ending_time",
$this->lng->txt("tst_ending_time"),
false
);
$this->addSetting(
"password_enabled",
$this->lng->txt("tst_password"),
false
);
$this->addSetting(
"fixedparticipants",
$this->lng->txt("participants_invitation"),
true
);
$this->addSetting(
"limitUsers",
$this->lng->txt("tst_allowed_users"),
false
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addTestFinishProperties ( )
private

Definition at line 288 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), ilSettingsTemplateConfig\BOOL, ilSettingsTemplateConfig\SELECT, and ilSettingsTemplateConfig\TEXT.

Referenced by initSettings().

{
$this->addSetting(
"enable_examview",
$this->lng->txt("enable_examview"),
false
);
$this->addSetting(
"showfinalstatement",
$this->lng->txt("final_statement"),
false
);
/* $this->addSetting(
"redirection_enabled",
ilSettingsTemplateConfig::SELECT,
$this->lng->txt("redirect_after_finishing_tst"),
false,
0,
array(
REDIRECT_NONE => $this->lng->txt("redirect_none"),
REDIRECT_ALWAYS => $this->lng->txt("redirect_always"),
REDIRECT_KIOSK => $this->lng->txt("redirect_in_kiosk_mode"),
)
); */
$this->addSetting(
"redirection_enabled",
$this->lng->txt("redirect_after_finishing_tst"),
false
);
$this->addSetting(
"sign_submission",
$this->lng->txt("sign_submission"),
true
);
$this->addSetting(
"mailnotification",
$this->lng->txt("tst_finish_notification"),
false,
0,
array(
'0' => $this->lng->txt("tst_finish_notification_no"),
'1' => $this->lng->txt("tst_finish_notification_simple"),
'2' => $this->lng->txt("tst_finish_notification_advanced"),
)
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addTestIntroProperties ( )
private

Definition at line 101 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), and ilSettingsTemplateConfig\BOOL.

Referenced by initSettings().

{
// Test Introduction
$this->addSetting(
"intro_enabled",
$this->lng->txt("tst_introduction"),
false
);
// All Details on Info Screen
$this->addSetting(
"showinfo",
$this->lng->txt("showinfo"),
true
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addTestRunProperties ( )
private

Definition at line 158 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), ilSettingsTemplateConfig\BOOL, and ilSettingsTemplateConfig\TEXT.

Referenced by initSettings().

{
$this->addSetting(
"nr_of_tries",
$this->lng->txt("tst_nr_of_tries"),
false,
3
);
$this->addSetting(
"chb_processing_time",
$this->lng->txt("tst_processing_time"),
false
);
$this->addSetting(
"kiosk",
$this->lng->txt("kiosk"),
false
);
$this->addSetting(
"examid_in_test_pass",
$this->lng->txt("examid_in_test_pass"),
false
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::addTestSequenceProperties ( )
private

Definition at line 250 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addSetting(), and ilSettingsTemplateConfig\BOOL.

Referenced by initSettings().

{
$this->addSetting(
"chb_use_previous_answers",
$this->lng->txt("tst_use_previous_answers"),
true
);
$this->addSetting(
"chb_show_cancel",
$this->lng->txt("tst_show_cancel"),
true
);
$this->addSetting(
"chb_postpone",
$this->lng->txt("tst_postpone"),
true
);
$this->addSetting(
"list_of_questions",
$this->lng->txt("tst_show_summary"),
false
);
$this->addSetting(
"chb_show_marker",
$this->lng->txt("question_marking"),
true
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::init ( )

Definition at line 29 of file class.ilTestSettingsTemplateConfig.php.

References initHidableTabs(), initLanguage(), and initSettings().

{
$this->initLanguage();
$this->initHidableTabs();
$this->initSettings();
}

+ Here is the call graph for this function:

ilTestSettingsTemplateConfig::initHidableTabs ( )
private

Definition at line 42 of file class.ilTestSettingsTemplateConfig.php.

References ilSettingsTemplateConfig\addHidableTab().

Referenced by init().

{
$this->addHidableTab("questions", $this->lng->txt('assQuestions').' - '.$this->lng->txt('edit_test_questions'));
$this->addHidableTab("mark_schema", $this->lng->txt('settings').' - '.$this->lng->txt("mark_schema"));
$this->addHidableTab("certificate", $this->lng->txt('settings').' - '.$this->lng->txt("certificate"));
$this->addHidableTab("defaults", $this->lng->txt('settings').' - '.$this->lng->txt("tst_default_settings"));
$this->addHidableTab("learning_progress", $this->lng->txt("learning_progress"));
$this->addHidableTab("manscoring", $this->lng->txt("manscoring"));
$this->addHidableTab("statistics", $this->lng->txt("statistics"));
$this->addHidableTab("history", $this->lng->txt("history"));
$this->addHidableTab("meta_data", $this->lng->txt("meta_data"));
$this->addHidableTab("export", $this->lng->txt("export"));
$this->addHidableTab("permissions", $this->lng->txt("permission"));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTestSettingsTemplateConfig::initLanguage ( )
private

Definition at line 36 of file class.ilTestSettingsTemplateConfig.php.

Referenced by init().

{
$this->lng->loadLanguageModule("tst");
$this->lng->loadLanguageModule("assessment");
}

+ Here is the caller graph for this function:

Field Documentation

ilTestSettingsTemplateConfig::$lng
protected

Definition at line 18 of file class.ilTestSettingsTemplateConfig.php.

Referenced by __construct().


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