19 declare(strict_types=1);
    34     protected \ilLanguage 
$lng;
    55             $props[$prop[
"prop"]] = $prop[
"val"];
    62         $pb->
build($ass, $user_id);
    66         foreach ($pb->getProperties($pb::SEC_SCHEDULE) as $prop) {
    67             $sections[] = $this->ui_factory->legacy($prop[
"prop"] . 
": " . $prop[
"val"]);
    69         $schedule_card = $this->ui_factory->card()->standard($this->
lng->txt(
"exc_schedule"))
    70             ->withSections($sections);
    73         $include_schedule = $pb->getInstructionsHidden();
    74         foreach ($pb->getSections($include_schedule) as $sec => 
$title) {
    76             $ctpl = new \ilTemplate(
    77                 "tpl.panel_content.html",
    80                 "components/ILIAS/Exercise/Assignment"    84             foreach ($pb->getProperties($sec) as $prop) {
    85                 if ($prop[
"prop"] === 
"") {
    86                     $ctpl->setCurrentBlock(
"entry_no_label");
    87                     $ctpl->setVariable(
"VALUE_NO_LABEL", $prop[
"val"]);
    88                     $ctpl->parseCurrentBlock();
    90                     $ctpl->setCurrentBlock(
"entry");
    91                     $ctpl->setVariable(
"LABEL", $prop[
"prop"]);
    92                     $ctpl->setVariable(
"VALUE", $prop[
"val"]);
    93                     $ctpl->parseCurrentBlock();
   100             foreach ($pb->getActions($sec) as $action) {
   105             if (count($pb->getActions($sec)) > 0) {
   112             $sub_panel = $this->ui_factory->panel()->sub(
   114                 $this->ui_factory->legacy($ctpl->get())
   116             if ($sec === $pb::SEC_INSTRUCTIONS && !$pb->getInstructionsHidden()) {
   117                 $sub_panel = $sub_panel->withFurtherInformation($schedule_card);
   121                 $sub_panels[] = $sub_panel;
   125         $panel = $this->ui_factory->panel()->standard(
   135         if (!is_null($c) && $c instanceof 
Button) {
   137             $tpl->
setVariable(
"BUTTON", $this->ui_renderer->render($c));
   144         foreach ($this->prop_builder->getActions($sec) as $action) {
   145             if ($action instanceof 
Link) {
   147                 $tpl->
setVariable(
"LINK", $this->ui_renderer->render($action));
   156         $pb->
build($ass, $user_id);
   157         return $pb->getViews();
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
ILIAS UI Renderer $ui_renderer
 
Interface Observer  Contains several chained tasks and infos about them. 
 
getPanel(Assignment $ass, int $user_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setVariable($variable, $value='')
Sets a variable value. 
 
addPropertyToItemProperties(array &$props, ?array $prop)
 
getPanelViews(Assignment $ass, int $user_id)
 
renderActionButton(\ilTemplate $tpl, ?Component $c)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
renderLinkList(\ilTemplate $tpl, string $sec)
 
PropertyAndActionBuilderUI $prop_builder
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
build(Assignment $ass, int $user_id)
 
__construct(PropertyAndActionBuilderUI $prop_builder, \ILIAS\UI\Factory $ui_factory, \ILIAS\UI\Renderer $ui_renderer, \ilCtrl $ctrl, \ilLanguage $lng)
 
ILIAS UI Factory $ui_factory