4 include_once(
"./Services/Object/classes/class.ilObject2GUI.php");
5 include_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(),
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)
204 case self::CFORM_NEW:
207 case self::CFORM_IMPORT:
208 return $this->lng->txt(
"import");
210 case self::CFORM_CLONE:
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");
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"));
455 $ilCtrl->setParameterByClass($class_name,
"ref_id",
$ref_id);
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"));
463 $ilCtrl->setParameterByClass($class_name,
"ref_id",
$ref_id);
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;
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get plugin object.
initCreationForms($a_new_type)
Init creation froms.
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
New implementation of ilObjectGUI.
GUI class for the workflow of copying objects.
const TITLE_LENGTH
max length of object title
txt($a_var)
Wrapper for txt function.
__construct($a_ref_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
Constructor.
addInfoItems($info)
Add items to info screen.
Class ilObject Basic functions for all objects.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
fillCloneTemplate($a_tpl_varname, $a_type)
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
static _lookupTitle($a_id)
lookup object title
static _goto($a_target)
Goto redirection.
lookupParentTitleInCreationMode()
getPlugin()
Get plugin object.
executeCommand()
execute command
Export User Interface Class.
initImportForm($a_new_type)
Init object import form.
addPermissionTab()
Add permission tab.
getAfterCreationCmd()
Cmd that will be redirected to after creation of a new object.
initCreateForm($a_new_type)
Init object creation form.
getType()
Functions that must be overwritten.
static lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
static _lookupObjId($a_id)
setSize($a_size)
Set Size.
This class represents a text property in a property form.
setCols($a_cols)
Set Cols.
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
setTabs()
create tabs (repository/workspace switch)
addLocatorItems()
Add object to locator.
Create new PHPExcel object
obj_idprivate
const LP_CONTEXT_REPOSITORY
This class represents a text area property in a property form.
addInfoTab()
Add info screen tab.
initEditForm()
Init object update form.
getCreationFormTitle($a_form_type)
Use custom creation form titles.
getRefId()
get reference id public
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
afterSave(ilObject $newObj)
After saving public.
addAdminLocatorItems($a_do_not_add_object=false)
infoScreen()
show information screen
Class ilObjUserTrackingGUI.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
setAdminTabs()
set admin tabs public