4 include_once(
'Services/Object/classes/class.ilObject2GUI.php');
15 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
19 $this->lng->loadLanguageModule(
'ecs');
26 $next_class = $this->ctrl->getNextClass($this);
27 $cmd = $this->ctrl->getCmd();
33 case 'ilinfoscreengui':
38 case 'ilpermissiongui':
39 $ilTabs->activateTab(
'id_permissions');
40 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
44 case "ilcommonactiondispatchergui":
45 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
47 $this->ctrl->forwardCommand($gui);
53 $cmd =
"editSettings";
69 if($ilUser->getId() == ANONYMOUS_USER_ID ||
70 $this->
object->isLocalObject())
76 $link = $this->
object->getFullRemoteLink();
90 $ilTabs->addTab(
"info", $this->lng->txt(
"info_short"),
91 $this->ctrl->getLinkTarget($this,
"infoScreen"));
96 $ilTabs->addTab(
"edit", $this->lng->txt(
"edit"),
97 $this->ctrl->getLinkTarget($this,
"edit"));
111 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
114 $this->object->getRefId(),
115 $this->
object->getId(),
121 $link = $this->
object->getFullRemoteLink();
142 $this->ctrl->setCmd(
"showSummary");
143 $this->ctrl->setCmdClass(
"ilinfoscreengui");
156 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),$ilErr->MESSAGE);
159 $ilTabs->activateTab(
'info');
161 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
164 if($ilUser->getId() == ANONYMOUS_USER_ID ||
165 $this->
object->isLocalObject())
167 $info->addButton($this->lng->txt($this->getType().
'_call'),
168 $this->
object->getRemoteLink(),
173 $info->addButton($this->lng->txt($this->getType().
'_call'),
174 $this->ctrl->getLinkTarget($this,
'call'),
178 $info->addSection($this->lng->txt(
'ecs_general_info'));
179 $info->addProperty($this->lng->txt(
'title'),$this->
object->getTitle());
180 if(strlen($this->object->getOrganization()))
182 $info->addProperty($this->lng->txt(
'organization'),$this->
object->getOrganization());
184 if(strlen($this->object->getDescription()))
186 $info->addProperty($this->lng->txt(
'description'),$this->
object->getDescription());
188 if(strlen($loc = $this->object->getLocalInformation()))
190 $info->addProperty($this->lng->txt(
'ecs_local_information'),$this->
object->getLocalInformation());
195 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
197 $this->
getType(),$this->object->getId());
199 $record_gui->parse();
201 $this->ctrl->forwardCommand($info);
225 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),$ilErr->MESSAGE);
228 $ilTabs->activateTab(
'edit');
234 $this->tpl->setContent($a_form->getHTML());
244 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
246 $form->setFormAction($this->ctrl->getFormAction($this));
247 $form->setTitle($this->lng->txt(
'ecs_general_info'));
248 $form->addCommandButton(
'update',$this->lng->txt(
'save'));
249 $form->addCommandButton(
'edit',$this->lng->txt(
'cancel'));
252 $text->
setValue($this->object->getTitle());
255 $text->setDisabled(
true);
256 $form->addItem($text);
259 $area->
setValue($this->object->getDescription());
262 $area->setDisabled(
true);
263 $form->addItem($area);
265 $area =
new ilTextAreaInputGUI($this->lng->txt(
'ecs_local_information'),
'local_info');
266 $area->
setValue($this->object->getLocalInformation());
269 $form->addItem($area);
273 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
275 $this->
getType(),$this->object->getId());
277 $record_gui->parse();
301 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),$ilErr->MESSAGE);
305 if($form->checkInput())
307 $this->
object->setLocalInformation($a_form->getInput(
'local_info'));
311 $this->
object->update();
314 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
316 $this->
getType(), $this->object->getId());
317 $record_gui->loadFromPost();
318 $record_gui->saveValues();
324 $form->setValuesByPost();
343 public static function _goto($a_target)
348 if($ilAccess->checkAccess(
'visible',
'',$a_target))
350 $_GET[
"cmd"] =
"infoScreen";
351 $_GET[
"ref_id"] = $a_target;
352 $_GET[
"baseClass"] =
"ilRepositoryGUI";
353 include(
"ilias.php");
357 if($ilAccess->checkAccess(
'read',
'',ROOT_FOLDER_ID))
359 $_GET[
"cmd"] =
"frameset";
360 $_GET[
"target"] =
"";
361 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
364 $_GET[
"baseClass"] =
"ilRepositoryGUI";
365 include(
"ilias.php");
369 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);