ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
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?>
Settings for LO courses.
static _getAllReferences($a_id)
get all reference ids of object
Creates a path for a start and endnode.
getParentObject()
Get parent object.
getFormAction()
Get Form action parameter.
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.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
Definition: CAS.php:276
$path
Definition: index.php:22