4include_once(
"./Services/Object/classes/class.ilObject2GUI.php");
5include_once(
"./Services/Component/classes/class.ilPlugin.php");
21 function __construct($a_ref_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
23 parent::__construct($a_ref_id, $a_id_type, $a_parent_node_id);
35 $tpl->getStandardTemplate();
40 $tpl->setTitle($this->object->getTitle());
44 if (strtolower(
$_GET[
"baseClass"]) !=
"iladministrationgui")
57 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
59 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
60 $ilCtrl->getLinkTarget($this, $this->getStandardCmd()), $this->getType());
70 $lng->txt(
"obj_".ilObject::_lookupType(
$_GET[
"ref_id"],
true)));
75 $next_class = $this->ctrl->getNextClass($this);
76 $cmd = $this->ctrl->getCmd();
80 case "ilinfoscreengui":
85 case 'ilpermissiongui':
86 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
88 $ilTabs->setTabActive(
"perm_settings");
89 $ilCtrl->forwardCommand($perm_gui);
92 case 'ilobjectcopygui':
93 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
96 $this->ctrl->forwardCommand($cp);
101 include_once
'./Services/Export/classes/class.ilExportGUI.php';
103 $exp->addFormat(
'xml');
104 $this->ctrl->forwardCommand($exp);
107 case 'illearningprogressgui':
108 $ilTabs->setTabActive(
"learning_progress");
109 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
111 $this->object->getRefId(),
113 $this->ctrl->forwardCommand($new_gui);
115 case 'ilcommonactiondispatchergui':
116 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
118 $this->ctrl->forwardCommand($gui);
135 if (
$cmd ==
"infoScreen")
137 $ilCtrl->setCmd(
"showSummary");
138 $ilCtrl->setCmdClass(
"ilinfoscreengui");
143 $this->performCommand(
$cmd);
163 $ilLocator->addItem($this->object->getTitle(),
164 $this->ctrl->getLinkTarget($this, $this->getStandardCmd()),
"",
$_GET[
"ref_id"]);
179 if (!is_object($this->plugin)) {
180 throw new ilPluginException(
"ilObjectPluginGUI: Could not instantiate plugin object for type " . $this->
getType() .
".");
189 final protected function txt($a_var)
208 return $this->lng->txt(
"import");
211 return $this->
txt(
"objs_".$this->
getType().
"_duplicate");
225 global $ilPluginAdmin;
256 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
258 $form->setTarget(
"_top");
259 $form->setFormAction($this->ctrl->getFormAction($this,
"save"));
260 $form->setTitle($this->
txt($a_new_type.
"_new"));
266 $ti->setRequired(
true);
275 $form->addCommandButton(
"save", $this->
txt($a_new_type.
"_add"));
276 $form->addCommandButton(
"cancel", $this->lng->txt(
"cancel"));
290 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
292 $form->setTarget(
"_top");
293 $form->setFormAction(
$ilCtrl->getFormAction($this,
"update"));
294 $form->setTitle(
$lng->txt(
"edit"));
300 $ti->setRequired(
true);
309 $form->addCommandButton(
"update",
$lng->txt(
"save"));
323 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
325 $form->setTarget(
"_top");
326 $form->setFormAction($this->ctrl->getFormAction($this,
"importFile"));
327 $form->setTitle($this->lng->txt(
"import"));
329 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
330 $fi =
new ilFileInputGUI($this->lng->txt(
"import_file"),
"importfile");
331 $fi->setSuffixes(array(
"zip"));
332 $fi->setRequired(
true);
335 $form->addCommandButton(
"importFile", $this->lng->txt(
"import"));
336 $form->addCommandButton(
"cancel", $this->lng->txt(
"cancel"));
351 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
352 $ilCtrl->setTargetScript(
"ilias.php");
353 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
360 $ilCtrl->setParameterByClass(get_class($this),
"ref_id", $newObj->
getRefId());
378 global $ilAccess, $ilTabs;
381 if ($ilAccess->checkAccess(
'visible',
"", $this->object->getRefId()))
383 $ilTabs->addTarget(
"info_short",
384 $this->ctrl->getLinkTargetByClass(
385 "ilinfoscreengui",
"showSummary"),
395 global $ilAccess, $ilTabs,
$ilCtrl;
398 if($ilAccess->checkAccess(
'edit_permission',
"", $this->object->getRefId()))
400 $ilTabs->addTarget(
"perm_settings",
401 $ilCtrl->getLinkTargetByClass(
"ilpermissiongui",
"perm"),
402 array(
"perm",
"info",
"owner"),
'ilpermissiongui');
414 $ilTabs->setTabActive(
"info_short");
418 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
420 $info->enablePrivateNotes();
423 $lng->loadLanguageModule(
"meta");
442 public static function _goto($a_target)
446 $t = explode(
"_", $a_target[0]);
448 $class_name = $a_target[1];
450 if ($ilAccess->checkAccess(
"read",
"",
$ref_id))
452 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
453 $ilCtrl->setTargetScript(
"ilias.php");
454 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
456 $ilCtrl->redirectByClass(array(
"ilobjplugindispatchgui", $class_name),
"");
458 else if($ilAccess->checkAccess(
"visible",
"",
$ref_id))
460 $ilCtrl->initBaseClass(
"ilObjPluginDispatchGUI");
461 $ilCtrl->setTargetScript(
"ilias.php");
462 $ilCtrl->getCallStructure(strtolower(
"ilObjPluginDispatchGUI"));
464 $ilCtrl->redirectByClass(array(
"ilobjplugindispatchgui", $class_name),
"infoScreen");
466 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
470 include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
480 global $ilPluginAdmin;
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Export User Interface Class.
const LP_CONTEXT_REPOSITORY
Class ilObjUserTrackingGUI.
New implementation of ilObjectGUI.
getType()
Functions that must be overwritten.
setTabs()
create tabs (repository/workspace switch)
fillCloneTemplate($a_tpl_varname, $a_type)
Fill object clone template This method can be called from any object GUI class that wants to offer ob...
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
getCreationMode()
get creation mode
addAdminLocatorItems($a_do_not_add_object=false)
should be overwritten to add object specific items (repository items are preloaded)
GUI class for the workflow of copying objects.
setAdminTabs()
set admin tabs @access public
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
initEditForm()
Init object update form.
getPlugin()
Get plugin object.
executeCommand()
execute command
getAfterCreationCmd()
Cmd that will be redirected to after creation of a new object.
initCreationForms($a_new_type)
Init creation froms.
lookupParentTitleInCreationMode()
addInfoTab()
Add info screen tab.
infoScreen()
show information screen
addInfoItems($info)
Add items to info screen.
static _goto($a_target)
Goto redirection.
getCreationFormTitle($a_form_type)
Use custom creation form titles.
__construct($a_ref_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
Constructor.
addLocatorItems()
Add object to locator.
afterSave(ilObject $newObj)
After saving @access public.
initImportForm($a_new_type)
Init object import form.
initCreateForm($a_new_type)
Init object creation form.
txt($a_var)
Wrapper for txt function.
addPermissionTab()
Add permission tab.
Class ilObject Basic functions for all objects.
static _lookupObjId($a_id)
const TITLE_LENGTH
max length of object title
static _lookupTitle($a_id)
lookup object title
getRefId()
get reference id @access public
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get plugin object.
static lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
This class represents a text area property in a property form.
This class represents a text property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.