ILIAS  release_8 Revision v8.24
class.ilObjectCopyCourseGroupSelectionTableGUI.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
27{
28 public function setObjects(array $obj_ids): void
29 {
30 $ref_ids = [];
31 foreach ($obj_ids as $obj_id) {
32 $all_ref_ids = ilObject::_getAllReferences($obj_id);
33 $ref_ids[] = end($all_ref_ids);
34 }
35 parent::setObjects($ref_ids);
36 }
37
38 public function init(): void
39 {
40 global $DIC;
41
42 $ilCtrl = $DIC->ctrl();
43
44 $this->enableRowSelectionInput(true);
45
46 parent::init();
47
48 $this->setFormAction($ilCtrl->getFormAction($this->getParentObject()));
49
50 $this->enableObjectPath(true);
51 $this->addCommandButton('saveSourceMembership', $this->lng->txt('btn_next'));
52 $this->addCommandButton('cancel', $this->lng->txt('cancel'));
53 }
54
55 public function fillRowSelectionInput(array $set): void
56 {
57 $this->tpl->setCurrentBlock('row_selection_input');
58 $this->tpl->setVariable('OBJ_INPUT_TYPE', 'radio');
59 $this->tpl->setVariable('OBJ_INPUT_NAME', 'source');
60 $this->tpl->setVariable('OBJ_INPUT_VALUE', $set['ref_id']);
61 }
62
64 {
65 $path->setUseImages(true);
66 $path->enableTextOnly(false);
67 return $path;
68 }
69}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Settings for LO courses.
enableRowSelectionInput(bool $stat)
enableObjectPath(bool $status)
static _getAllReferences(int $id)
get all reference ids for object ID
Creates a path for a start and endnode.
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setFormAction(string $a_form_action, bool $a_multipart=false)
global $DIC
Definition: feed.php:28
$path
Definition: ltiservices.php:32