37         return $this->context_collection->
main()->main();
    45         $lng = $DIC->language();
    46         $lng->loadLanguageModule(
"exc");
    48         $title = 
$lng->txt(
"exc_assignment");
    49         $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"exc", $title);
    52         $additional_data = $called_contexts->
current()->getAdditionalData();
    53         if ($additional_data->is(self::SHOW_EXC_ASSIGNMENT_INFO, 
true)) {
    54             $iff = 
function (
$id) {
    55                 return $this->identification_provider->contextAwareIdentifier(
$id);
    57             $l = 
function (
string $content) {
    58                 return $this->dic->ui()->factory()->legacy($content);
    60             $tools[] = $this->factory->tool($iff(
"exc_ass_info"))
    68                     function () use ($l, $additional_data) {
    69                         $buttons = $additional_data->exists(self::EXC_ASS_BUTTONS)
    70                             ? $additional_data->get(self::EXC_ASS_BUTTONS)
    73                             $additional_data->get(self::EXC_ASS_IDS),
    96         $lng = $DIC->language();
    99         $access = $DIC->access();
   100         $link_service = $DIC->exercise()->internal()->gui()->permanentLink();
   104         foreach ($ass_ids as 
$ass_id) {
   107             $readable_ref_id = 0;
   109                 if ($access->checkAccess(
"read", 
"", $ref_id)) {
   114             $tpl = 
new ilTemplate(
"tpl.ass_info_tool.html", 
true, 
true, 
"components/ILIAS/Exercise");
   118             if ($readable_ref_id > 0) {
   119                 $title = $ui->renderer()->render(
   120                     $ui->factory()->link()->standard($title, $link_service->getPermanentLink($readable_ref_id, $ass_id))
   127             $schedule = $info->getScheduleInfo();
   128             $list = $ui->factory()->listing()->unordered(
array_map(
function ($i) {
   129                 return $i[
"txt"] . 
": " . $i[
"value"];
   131             $this->
addSection($tpl, 
$lng->txt(
"exc_schedule"), $ui->renderer()->render($list));
   134             $subm = $info->getSubmissionInfo();
   135             if (isset($subm[
"submitted"])) {
   136                 $this->
addSection($tpl, $subm[
"submitted"][
"txt"], $subm[
"submitted"][
"value"]);
   140             $inst = $info->getInstructionInfo();
   142                 $this->
addSection($tpl, $inst[
"instruction"][
"txt"], $inst[
"instruction"][
"value"]);
   146             $files = $info->getInstructionFileInfo($readable_ref_id);
   147             if (is_array($files)) {
   148                 $list = $ui->factory()->listing()->unordered(
array_map(
function ($i) use ($ui) {
   150                     if ($i[
"value"] != 
"") {
   151                         $v = $ui->renderer()->render($ui->factory()->button()->shy($v, $i[
"value"]));
   155                 $this->
addSection($tpl, 
$lng->txt(
"exc_instruction_files"), $ui->renderer()->render($list));
   159             if (isset($buttons[$ass_id])) {
   160                 $tpl->setVariable(
"BUTTONS", implode(
" ", 
array_map(
function (
$b) use ($ui) {
   161                     return $ui->renderer()->render(
$b);
   165             $tpl->setCurrentBlock(
"ass_info");
   166             $tpl->parseCurrentBlock();
   167             $html .= $tpl->get();
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
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. 
 
static _lookupTitle(int $obj_id)
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
static lookupExerciseId(int $a_ass_id)