5 include_once(
"./Services/Object/classes/class.ilObject2GUI.php");
6 include_once(
"./Modules/ItemGroup/classes/class.ilObjItemGroup.php");
29 $lng->loadLanguageModule(
"itgr");
31 $this->ctrl->saveParameter($this,
array(
"ref_id"));
49 $next_class = $this->ctrl->getNextClass($this);
50 $cmd = $this->ctrl->getCmd();
54 case 'ilinfoscreengui':
60 case 'ilpermissiongui':
62 $ilTabs->activateTab(
"perm_settings");
64 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
66 $ret = $this->ctrl->forwardCommand($perm_gui);
69 case "ilcommonactiondispatchergui":
70 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
72 $this->ctrl->forwardCommand($gui);
76 $cmd = $this->ctrl->getCmd(
"listMaterials");
92 global $ilLocator, $ilAccess;
94 if (is_object($this->
object) && $ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
96 $ilLocator->addItem($this->
object->getTitle(), $this->ctrl->getLinkTarget($this,
"listMaterials"),
"",
$_GET[
"ref_id"]);
121 $ta->setInfo($this->lng->txt(
"itgr_desc_info"));
126 $cb->
setInfo($this->lng->txt(
"itgr_hide_title_info"));
140 $ilCtrl->redirect($this,
"listMaterials");
156 $ilTabs->activateTab(
"materials");
158 $parent_ref_id = $tree->getParentId($this->
object->getRefId());
160 include_once
"Services/Object/classes/class.ilObjectAddNewItemGUI.php";
162 $gui->setDisabledObjectTypes(
array(
"itgr",
"sess"));
163 $gui->setAfterCreationCallback($this->
object->getRefId());
166 include_once(
"./Modules/ItemGroup/classes/class.ilItemGroupItemsTableGUI.php");
168 $tpl->setContent(
$tab->getHTML());
180 include_once
'./Modules/ItemGroup/classes/class.ilItemGroupItems.php';
183 $items = is_array(
$_POST[
'items'])
187 $item_group_items->setItems($items);
188 $item_group_items->update();
191 $ilCtrl->redirect($this,
"listMaterials");
200 $this->tpl->getStandardTemplate();
211 $ilHelp->setScreenIdComponent(
"itgr");
213 $parent_ref_id = $tree->getParentId($this->
object->getRefId());
217 include_once(
"./Services/Link/classes/class.ilLink.php");
218 $ilTabs->setBackTarget(
219 $lng->txt(
'obj_'.$parent_type),
222 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
224 $ilTabs->addTab(
'materials',
225 $lng->txt(
'itgr_materials'),
226 $this->ctrl->getLinkTarget($this,
'listMaterials'));
228 $ilTabs->addTab(
'settings',
229 $lng->txt(
'settings'),
230 $this->ctrl->getLinkTarget($this,
'edit'));
233 if ($ilAccess->checkAccess(
"edit_permission",
"", $this->object->getRefId()))
235 $ilTabs->addTab(
"perm_settings",
236 $lng->txt(
'perm_settings'),
237 $this->ctrl->getLinkTargetByClass(
array(get_class($this),
'ilpermissiongui'),
"perm")
246 public static function _goto($a_target)
250 $targets = explode(
'_',$a_target);
252 $par_id = $tree->getParentId(
$ref_id);
254 if ($ilAccess->checkAccess(
"read",
"", $par_id))
256 include_once(
"./Services/Link/classes/class.ilLink.php");
260 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
267 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
277 $ref_id = $this->
object->getRefId();
278 $par_id = $tree->getParentId(
$ref_id);
280 if ($ilAccess->checkAccess(
"read",
"", $par_id))
282 include_once(
"./Services/Link/classes/class.ilLink.php");
296 include_once
'./Modules/ItemGroup/classes/class.ilItemGroupItems.php';
309 $a_values[
"hide_title"] = $this->
object->getHideTitle();
319 $this->
object->setHideTitle($a_form->
getInput(
"hide_title"));
330 $form = parent::initCreateForm($a_new_type);
331 $ta = $form->getItemByPostVar(
"desc");
332 $ta->setInfo($this->lng->txt(
"itgr_desc_info"));
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
gotoParent()
Goto item group.
addItem($a_item_ref_id)
Add one item.
addLocatorItems()
Add session locator.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
static _goto($a_target)
Goto item group.
executeCommand()
execute command
New implementation of ilObjectGUI.
afterSave(ilObject $a_new_object)
After save.
Class ilObject Basic functions for all objects.
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
static _lookupTitle($a_id)
lookup object title
listMaterials()
show material assignment
getEditFormCustomValues(array &$a_values)
Get edit form values (custom part)
initEditCustomForm(ilPropertyFormGUI $a_form)
Init edit form, custom part.
initCreateForm($a_new_type)
Init object creation form.
afterConstructor()
Initialisation.
static _lookupObjId($a_id)
getTemplate()
Get standard template.
updateCustom(ilPropertyFormGUI $a_form)
Update (custom part)
saveItemAssignment()
Save material assignment.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashesArray($a_arr, $a_strip_html=true, $a_allow="")
Strip slashes from array.
User Interface class for item groups.
setRows($a_rows)
Set Rows.
Create new PHPExcel object
obj_idprivate
Render add new item selector.
This class represents a text area property in a property form.
getRefId()
get reference id public
prepareOutput($a_show_subobjects=true)
initCreationForms($a_new_type)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static redirect($a_script)
http redirect to other script
addHeaderAction()
Add header action menu.
afterSaveCallback(ilObject $a_obj)
Custom callback after object is created (in parent containert.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call