50 $this->main_tpl = $ui->mainTemplate();
65 $next_class =
$ctrl->getNextClass($this);
66 $cmd =
$ctrl->getCmd(
"startExercise");
68 switch ($next_class) {
70 if (in_array($cmd, array(
"startExercise"))) {
84 $but = $this->
ui->factory()->button()->primary(
85 $lng->txt(
"exc_start_exercise"),
86 $this->ctrl->getLinkTarget($this,
"startExercise")
91 $info_gui->addSection(
$lng->txt(
"exc_random_assignment"));
92 $info_gui->addProperty(
94 $lng->txt(
"exc_random_assignment_info")
96 $info_gui->addProperty(
97 $lng->txt(
"exc_rand_overall_ass"),
98 $this->random_manager->getTotalNumberOfAssignments()
100 $info_gui->addProperty(
101 $lng->txt(
"exc_rand_nr_mandatory"),
102 $this->random_manager->getNumberOfMandatoryAssignments()
104 $this->main_tpl->setContent($info_gui->getHTML());
115 $this->random_manager->startExercise();
116 $this->ctrl->redirectByClass(
"ilObjExerciseGUI",
"showOverview");
This class provides processing control methods.
Class ChatMainBarProvider .
__construct(\ILIAS\DI\UIServices $ui, ilToolbarGUI $toolbar, ilLanguage $lng, ilCtrl $ctrl, ilExcRandomAssignmentManager $random_manager)
Constructor.
Manages random mandatory assignments of an exercise.
renderStartPage()
Render start page.
executeCommand()
Execute command.
UI for random assignment.