ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  $this->enableRowSelectionInput(true);
36 
37  parent::init();
38 
39  $this->setFormAction($GLOBALS['ilCtrl']->getFormAction($this->getParentObject()));
40 
41  $this->enableObjectPath(true);
42  $this->addCommandButton('saveSourceMembership', $this->lng->txt('btn_next'));
43  $this->addCommandButton('cancel', $this->lng->txt('cancel'));
44  }
45 
50  public function fillRowSelectionInput($set)
51  {
52  $this->tpl->setCurrentBlock('row_selection_input');
53  $this->tpl->setVariable('OBJ_INPUT_TYPE', 'radio');
54  $this->tpl->setVariable('OBJ_INPUT_NAME', 'source');
55  $this->tpl->setVariable('OBJ_INPUT_VALUE', $set['ref_id']);
56  }
57 
63  public function customizePath(\ilPathGUI $path)
64  {
65  $path->setUseImages(true);
66  $path->enableTextOnly(false);
67  return $path;
68  }
69 }
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
Creates a path for a start and endnode.
setUseImages($a_status)
set use images
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
enableTextOnly($a_status)
render path as text only
getParentObject()
Get parent object.
static _getAllReferences($a_id)
get all reference ids of object
getFormAction()
Get Form action parameter.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
Settings for LO courses.