ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjectCopyCourseGroupSelectionTableGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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
47
48 $this->setFormAction($ilCtrl->getFormAction($this->getParentObject()));
49
50 $this->enableObjectPath(true);
51 $this->addCommandButton('saveSourceMembership', $this->lng->txt('next'));
52 }
53
54 public function fillRowSelectionInput(array $set): void
55 {
56 $this->tpl->setCurrentBlock('row_selection_input');
57 $this->tpl->setVariable('OBJ_INPUT_TYPE', 'radio');
58 $this->tpl->setVariable('OBJ_INPUT_NAME', 'source');
59 $this->tpl->setVariable('OBJ_INPUT_VALUE', $set['ref_id']);
60 }
61
63 {
64 $path->setUseImages(true);
65 $path->enableTextOnly(false);
66 return $path;
67 }
68}
Settings for LO courses.
enableRowSelectionInput(bool $stat)
enableObjectPath(bool $status)
static _getAllReferences(int $id)
get all reference ids for object ID
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)
$path
Definition: ltiservices.php:30
global $DIC
Definition: shib_login.php:26