ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
25  $all_ref_ids = ilObject::_getAllReferences($obj_id);
26  $ref_ids[] = end($all_ref_ids);
27  }
28  return parent::setObjects($ref_ids);
29  }
30 
34  public function init()
35  {
36  $this->enableRowSelectionInput(TRUE);
37 
38  parent::init();
39 
40  $this->setFormAction($GLOBALS['ilCtrl']->getFormAction($this->getParentObject()));
41 
42  $this->enableObjectPath(TRUE);
43  $this->addCommandButton('saveSourceMembership',$this->lng->txt('btn_next'));
44  $this->addCommandButton('cancel',$this->lng->txt('cancel'));
45  }
46 
51  public function fillRowSelectionInput($set)
52  {
53  $this->tpl->setCurrentBlock('row_selection_input');
54  $this->tpl->setVariable('OBJ_INPUT_TYPE','radio');
55  $this->tpl->setVariable('OBJ_INPUT_NAME','source');
56  $this->tpl->setVariable('OBJ_INPUT_VALUE',$set['ref_id']);
57  }
58 
64  public function customizePath(\ilPathGUI $path)
65  {
66  $path->setUseImages(TRUE);
67  $path->enableTextOnly(FALSE);
68  return $path;
69  }
70 }
71 ?>
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
$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.