@ilCtrl_Calls ilBlogExerciseGUI:
More...
◆ __construct()
◆ downloadExcAssFile()
ilBlogExerciseGUI::downloadExcAssFile |
( |
| ) |
|
|
protected |
Definition at line 85 of file class.ilBlogExerciseGUI.php.
85 : void
86 {
87 if ($this->file) {
89 $ass_files = $ass->getFiles();
90 if (count($ass_files) > 0) {
91 foreach ($ass_files as
$file) {
92 if (
$file[
"name"] == $this->file) {
94 }
95 }
96 }
97 }
98 }
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
References $file, and ilFileDelivery\deliverFileLegacy().
◆ executeCommand()
ilBlogExerciseGUI::executeCommand |
( |
| ) |
|
Definition at line 67 of file class.ilBlogExerciseGUI.php.
67 : void
68 {
70
71 if (!$this->ass_id) {
72 $this->
ctrl->returnToParent($this);
73 }
74
75 $next_class = $ilCtrl->getNextClass($this);
76 $cmd = $ilCtrl->getCmd();
77
78 switch ($next_class) {
79 default:
80 $this->$cmd();
81 break;
82 }
83 }
References $ctrl, and ILIAS\Repository\ctrl().
◆ finalize()
ilBlogExerciseGUI::finalize |
( |
| ) |
|
|
protected |
Definition at line 122 of file class.ilBlogExerciseGUI.php.
122 : void
123 {
126
128 $exc_gui->submitBlog($this->node_id);
129
130 $this->main_tpl->setOnScreenMessage(
'success',
$lng->
txt(
"blog_finalized"),
true);
131 $ilCtrl->returnToParent($this);
132 }
static initGUIForSubmit(int $a_ass_id, ?int $a_user_id=null)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
References $ctrl, $lng, ilExSubmissionObjectGUI\initGUIForSubmit(), and ilLanguage\txt().
◆ getActionButtons()
ilBlogExerciseGUI::getActionButtons |
( |
| ) |
|
Definition at line 183 of file class.ilBlogExerciseGUI.php.
183 : array
184 {
186
187 $buttons = [];
188 foreach ($be->getAssignmentsOfBlog() as
$exercise) {
192 if ($submit_button) {
193 $buttons[
$ass_id][] = $submit_button;
194 }
196 if ($download_button) {
197 $buttons[
$ass_id][] = $download_button;
198 }
199 }
200
201 return $buttons;
202 }
getDownloadSubmissionButton(int $ass_id)
getSubmitButton(int $ass_id)
Get submit link.
References $ass_id, and $exercise.
◆ getDownloadSubmissionButton()
ilBlogExerciseGUI::getDownloadSubmissionButton |
( |
int |
$ass_id | ) |
|
- Exceptions
-
Definition at line 160 of file class.ilBlogExerciseGUI.php.
166
167
170
172 if ($submitted?->getTimestamp() !== "") {
173 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"ass",
$ass_id);
174 $dl_link = $ilCtrl->getLinkTargetByClass("ilblogexercisegui", "downloadExcSubFile");
175 $ilCtrl->setParameterByClass("ilblogexercisegui", "ass", "");
176 return $ui->factory()->button()->standard(
$lng->
txt(
"blog_download_submission"), $dl_link);
177 }
178 }
179 return null;
180 }
SubmissionManager $submission
Exercise submission //TODO: This class has many static methods related to delivered "files".
◆ getSubmitButton()
ilBlogExerciseGUI::getSubmitButton |
( |
int |
$ass_id | ) |
|
Get submit link.
- Exceptions
-
Definition at line 138 of file class.ilBlogExerciseGUI.php.
144
146
147 if ($state->isSubmissionAllowed()) {
148 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"ass",
$ass_id);
149 $submit_link = $ilCtrl->getLinkTargetByClass("ilblogexercisegui", "finalize");
150 $ilCtrl->setParameterByClass("ilblogexercisegui", "ass", "");
151 return $ui->factory()->button()->primary(
$lng->
txt(
"blog_finalize_blog"), $submit_link);
152 }
153 return null;
154 }
static getInstanceByIds(int $a_ass_id, int $a_user_id=0)
◆ $ass_id
int ilBlogExerciseGUI::$ass_id |
|
protected |
◆ $blog_exercise
ILIAS Blog Exercise BlogExercise ilBlogExerciseGUI::$blog_exercise |
|
protected |
◆ $blog_request
◆ $ctrl
ilCtrl ilBlogExerciseGUI::$ctrl |
|
protected |
◆ $file
string ilBlogExerciseGUI::$file |
|
protected |
◆ $lng
◆ $main_tpl
◆ $node_id
int ilBlogExerciseGUI::$node_id |
|
protected |
◆ $submission
◆ $ui
ILIAS DI UIServices ilBlogExerciseGUI::$ui |
|
protected |
◆ $user
The documentation for this class was generated from the following file: