3 declare(strict_types=1);
    38     protected \ILIAS\DI\UIServices 
$ui;
    43         \
ILIAS\Blog\Exercise\BlogExercise $blog_exercise,
    46         \
ILIAS\Blog\InternalGUIService $gui
    48         $this->main_tpl = $gui->ui()->mainTemplate();
    49         $this->
ctrl = $gui->ctrl();
    52         $this->node_id = $a_node_id;
    53         $this->blog_request = $gui->standardRequest();
    55         $this->ass_id = $this->blog_request->getAssId();
    56         $this->file = $this->blog_request->getAssFile();
    57         $this->
ui = $gui->ui();
    66             $this->
ctrl->returnToParent($this);
    69         $next_class = $ilCtrl->getNextClass($this);
    70         $cmd = $ilCtrl->getCmd();
    72         switch ($next_class) {
    83             $ass_files = $ass->getFiles();
    84             if (count($ass_files) > 0) {
    85                 foreach ($ass_files as $file) {
    86                     if ($file[
"name"] == $this->file) {
   100         $submitted = $submission->
getFiles();
   101         if (count($submitted) > 0) {
   102             $submitted = array_pop($submitted);
   106                 $ass->getTitle() . 
" - " .
   107                 $user_data[
"firstname"] . 
" " .
   108                 $user_data[
"lastname"] . 
" (" .
   109                 $user_data[
"login"] . 
").zip";
   121         $exc_gui->submitBlog($this->node_id);
   123         $this->main_tpl->setOnScreenMessage(
'success', $lng->
txt(
"blog_finalized"), 
true);
   124         $ilCtrl->returnToParent($this);
   140         if ($state->isSubmissionAllowed()) {
   141             $ilCtrl->setParameterByClass(
"ilblogexercisegui", 
"ass", $ass_id);
   142             $submit_link = $ilCtrl->getLinkTargetByClass(
"ilblogexercisegui", 
"finalize");
   143             $ilCtrl->setParameterByClass(
"ilblogexercisegui", 
"ass", 
"");
   144             return $ui->factory()->button()->primary($lng->
txt(
"blog_finalize_blog"), $submit_link);
   162         if ($submission->hasSubmitted()) {
   165             if ($submitted[
"ts"] != 
"") {
   166                 $ilCtrl->setParameterByClass(
"ilblogexercisegui", 
"ass", $ass_id);
   167                 $dl_link = $ilCtrl->getLinkTargetByClass(
"ilblogexercisegui", 
"downloadExcSubFile");
   168                 $ilCtrl->setParameterByClass(
"ilblogexercisegui", 
"ass", 
"");
   169                 return $ui->factory()->button()->standard($lng->
txt(
"blog_download_submission"), $dl_link);
   181         foreach ($be->getAssignmentsOfBlog() as 
$exercise) {
   185             if ($submit_button) {
   186                 $buttons[
$ass_id][] = $submit_button;
   189             if ($download_button) {
   190                 $buttons[
$ass_id][] = $download_button;
 ILIAS Blog Exercise BlogExercise $blog_exercise
 
getFiles(array $a_file_ids=null, bool $a_only_valid=false, string $a_min_timestamp=null, bool $print_versions=false)
Get submission items (not only files) 
 
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...
 
Class ChatMainBarProvider . 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupName(int $a_user_id)
lookup user name 
 
StandardGUIRequest $blog_request
 
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
 
getDownloadSubmissionButton(int $ass_id)
 
static _lookupTitle(int $obj_id)
 
static getInstanceByIds(int $a_ass_id, int $a_user_id=0)
 
__construct(int $a_node_id, \ILIAS\Blog\Exercise\BlogExercise $blog_exercise, ilLanguage $lng, ilObjUser $user, \ILIAS\Blog\InternalGUIService $gui)
 
static initGUIForSubmit(int $a_ass_id, int $a_user_id=null)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getSubmitButton(int $ass_id)
Get submit link. 
 
ilGlobalTemplateInterface $main_tpl