ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
4 include_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 }
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
Creates a path for a start and endnode.
$path
Definition: aliased.php:25
setUseImages($a_status)
set use images
global $DIC
Definition: saml.php:7
enableTextOnly($a_status)
render path as text only
static _getAllReferences($a_id)
get all reference ids of object
global $ilCtrl
Definition: ilias.php:18
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
Settings for LO courses.
while(count($oldTaskList) > 0) foreach(array_keys($newTaskList) as $task) init()
Definition: build.php:77