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"));
112 $link = $this->
object->getFullRemoteLink();
133 $this->ctrl->setCmd(
"showSummary");
134 $this->ctrl->setCmdClass(
"ilinfoscreengui");
147 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),$ilErr->MESSAGE);
150 $ilTabs->activateTab(
'info');
152 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
155 if($ilUser->getId() == ANONYMOUS_USER_ID ||
156 $this->
object->isLocalObject())
158 $info->addButton($this->lng->txt($this->getType().
'_call'),
159 $this->
object->getRemoteLink(),
164 $info->addButton($this->lng->txt($this->getType().
'_call'),
165 $this->ctrl->getLinkTarget($this,
'call'),
169 $info->addSection($this->lng->txt(
'ecs_general_info'));
170 $info->addProperty($this->lng->txt(
'title'),$this->
object->getTitle());
171 if(strlen($this->object->getOrganization()))
173 $info->addProperty($this->lng->txt(
'organization'),$this->
object->getOrganization());
175 if(strlen($this->object->getDescription()))
177 $info->addProperty($this->lng->txt(
'description'),$this->
object->getDescription());
179 if(strlen($loc = $this->object->getLocalInformation()))
181 $info->addProperty($this->lng->txt(
'ecs_local_information'),$this->
object->getLocalInformation());
186 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
188 $this->
getType(),$this->object->getId());
190 $record_gui->parse();
192 $this->ctrl->forwardCommand($info);
216 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),$ilErr->MESSAGE);
219 $ilTabs->activateTab(
'edit');
225 $this->tpl->setContent($a_form->getHTML());
235 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
237 $form->setFormAction($this->ctrl->getFormAction($this));
238 $form->setTitle($this->lng->txt(
'ecs_general_info'));
239 $form->addCommandButton(
'update',$this->lng->txt(
'save'));
240 $form->addCommandButton(
'edit',$this->lng->txt(
'cancel'));
243 $text->
setValue($this->object->getTitle());
245 $text->setMaxLength(128);
246 $text->setDisabled(
true);
247 $form->addItem($text);
250 $area->
setValue($this->object->getDescription());
253 $area->setDisabled(
true);
254 $form->addItem($area);
256 $area =
new ilTextAreaInputGUI($this->lng->txt(
'ecs_local_information'),
'local_info');
257 $area->
setValue($this->object->getLocalInformation());
260 $form->addItem($area);
264 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
266 $this->
getType(),$this->object->getId());
268 $record_gui->parse();
292 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),$ilErr->MESSAGE);
296 if($form->checkInput())
298 $this->
object->setLocalInformation($a_form->getInput(
'local_info'));
302 $this->
object->update();
305 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
307 $this->
getType(), $this->object->getId());
309 $record_gui->saveValues();
315 $form->setValuesByPost();
334 public static function _goto($a_target)
339 if($ilAccess->checkAccess(
'visible',
'',$a_target))
341 $_GET[
"cmd"] =
"infoScreen";
342 $_GET[
"ref_id"] = $a_target;
343 $_GET[
"baseClass"] =
"ilRepositoryGUI";
344 include(
"ilias.php");
348 if($ilAccess->checkAccess(
'read',
'',ROOT_FOLDER_ID))
350 $_GET[
"cmd"] =
"frameset";
351 $_GET[
"target"] =
"";
352 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
355 $_GET[
"baseClass"] =
"ilRepositoryGUI";
356 include(
"ilias.php");
360 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);