ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjectCopyCourseGroupSelectionTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once './Services/Object/classes/class.ilObjectTableGUI.php';
5
15{
20 public function setObjects($a_obj_ids)
21 {
22 $ref_ids = array();
23 foreach ($a_obj_ids as $obj_id) {
24 $all_ref_ids = ilObject::_getAllReferences($obj_id);
25 $ref_ids[] = end($all_ref_ids);
26 }
27 return parent::setObjects($ref_ids);
28 }
29
33 public function init()
34 {
35 global $DIC;
36
37 $ilCtrl = $DIC->ctrl();
38
39 $this->enableRowSelectionInput(true);
40
41 parent::init();
42
43 $this->setFormAction($ilCtrl->getFormAction($this->getParentObject()));
44
45 $this->enableObjectPath(true);
46 $this->addCommandButton('saveSourceMembership', $this->lng->txt('btn_next'));
47 $this->addCommandButton('cancel', $this->lng->txt('cancel'));
48 }
49
54 public function fillRowSelectionInput($set)
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
67 public function customizePath(\ilPathGUI $path)
68 {
69 $path->setUseImages(true);
70 $path->enableTextOnly(false);
71 return $path;
72 }
73}
An exception for terminatinating execution or to throw for unit testing.
Settings for LO courses.
static _getAllReferences($a_id)
get all reference ids of object
Creates a path for a start and endnode.
setUseImages($a_status)
set use images
enableTextOnly($a_status)
render path as text only
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
global $DIC
Definition: goto.php:24