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)
17 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
19 $this->lng->loadLanguageModule(
'ecs');
26 $ilTabs = $DIC[
'ilTabs'];
28 $next_class = $this->ctrl->getNextClass($this);
29 $cmd = $this->ctrl->getCmd();
33 switch ($next_class) {
34 case 'ilinfoscreengui':
39 case 'ilpermissiongui':
40 $ilTabs->activateTab(
'id_permissions');
41 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
45 case "ilcommonactiondispatchergui":
46 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
48 $this->ctrl->forwardCommand($gui);
52 if (!$cmd || $cmd ==
'view') {
53 $cmd =
"editSettings";
71 if (
$ilUser->getId() == ANONYMOUS_USER_ID ||
72 $this->
object->isLocalObject()) {
75 $link = $this->
object->getFullRemoteLink();
87 $ilTabs = $DIC[
'ilTabs'];
92 $this->lng->txt(
"info_short"),
93 $this->ctrl->getLinkTarget($this,
"infoScreen")
100 $this->lng->txt(
"edit"),
101 $this->ctrl->getLinkTarget($this,
"edit")
116 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
119 $this->object->getRefId(),
120 $this->
object->getId(),
126 $link = $this->
object->getFullRemoteLink();
144 $this->ctrl->setCmd(
"showSummary");
145 $this->ctrl->setCmdClass(
"ilinfoscreengui");
158 $ilTabs = $DIC[
'ilTabs'];
161 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),
$ilErr->MESSAGE);
164 $ilTabs->activateTab(
'info');
166 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
169 if (
$ilUser->getId() == ANONYMOUS_USER_ID ||
170 $this->
object->isLocalObject()) {
172 $this->lng->txt($this->getType() .
'_call'),
173 $this->object->getRemoteLink(),
178 $this->lng->txt($this->getType() .
'_call'),
179 $this->ctrl->getLinkTarget($this,
'call'),
184 $info->addSection($this->lng->txt(
'ecs_general_info'));
185 $info->addProperty($this->lng->txt(
'title'), $this->
object->getTitle());
186 if (strlen($this->object->getOrganization())) {
187 $info->addProperty($this->lng->txt(
'organization'), $this->
object->getOrganization());
189 if (strlen($this->object->getDescription())) {
190 $info->addProperty($this->lng->txt(
'description'), $this->
object->getDescription());
192 if (strlen($loc = $this->object->getLocalInformation())) {
193 $info->addProperty($this->lng->txt(
'ecs_local_information'), $this->
object->getLocalInformation());
198 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
202 $this->object->getId()
205 $record_gui->parse();
207 $this->ctrl->forwardCommand(
$info);
229 $ilTabs = $DIC[
'ilTabs'];
232 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),
$ilErr->MESSAGE);
235 $ilTabs->activateTab(
'edit');
240 $this->tpl->setContent($a_form->getHTML());
250 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
252 $form->setFormAction($this->ctrl->getFormAction($this));
253 $form->setTitle($this->lng->txt(
'ecs_general_info'));
254 $form->addCommandButton(
'update', $this->lng->txt(
'save'));
255 $form->addCommandButton(
'edit', $this->lng->txt(
'cancel'));
258 $text->setValue($this->object->getTitle());
261 $text->setDisabled(
true);
265 $area->
setValue($this->object->getDescription());
268 $area->setDisabled(
true);
269 $form->addItem($area);
271 $area =
new ilTextAreaInputGUI($this->lng->txt(
'ecs_local_information'),
'local_info');
272 $area->
setValue($this->object->getLocalInformation());
275 $form->addItem($area);
279 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
283 $this->object->getId()
286 $record_gui->parse();
310 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'),
$ilErr->MESSAGE);
314 if (
$form->checkInput()) {
315 $this->
object->setLocalInformation($a_form->getInput(
'local_info'));
319 $this->
object->update();
322 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
326 $this->object->getId()
328 $record_gui->loadFromPost();
329 $record_gui->saveValues();
331 ilUtil::sendSuccess($this->lng->txt(
"settings_saved"));
335 $form->setValuesByPost();
353 public static function _goto($a_target)
359 $ilAccess = $DIC[
'ilAccess'];
362 if ($ilAccess->checkAccess(
'visible',
'', $a_target)) {
363 $_GET[
"cmd"] =
"infoScreen";
364 $_GET[
"ref_id"] = $a_target;
365 $_GET[
"baseClass"] =
"ilRepositoryGUI";
366 include(
"ilias.php");
370 if ($ilAccess->checkAccess(
'read',
'', ROOT_FOLDER_ID)) {
371 $_GET[
"cmd"] =
"frameset";
372 $_GET[
"target"] =
"";
373 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
375 $lng->txt(
"msg_no_perm_read_item"),
378 $_GET[
"baseClass"] =
"ilRepositoryGUI";
379 include(
"ilias.php");
static _recordReadEvent( $a_type, $a_ref_id, $obj_id, $usr_id, $isCatchupWriteEvents=true, $a_ext_rc=false, $a_ext_time=false)
Records a read event and catches up with write events.
callObject()
call remote object
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
New implementation of ilObjectGUI.
setPropertyForm($form)
set property form object
infoScreen()
show info screen
const TITLE_LENGTH
max length of object title
updateObject()
update object
setValue($a_value)
Set Value.
addCustomInfoFields(ilInfoScreenGUI $a_info)
Add custom fields to info screen.
static _goto($a_target)
redirect script
static _lookupTitle($a_id)
lookup object title
setInfoObject($info)
get info sections
editObject(ilPropertyFormGUI $a_form=null)
Edit settings.
if(isset($_POST['submit'])) $form
infoScreenObject()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually...
getType()
Functions that must be overwritten.
static _lookupObjId($a_id)
This class represents a text property in a property form.
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
showObject()
show remote object
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
This class represents a text area property in a property form.
updateCustomValues(ilPropertyFormGUI $a_form)
Update object custom values.
prepareOutput($a_show_subobjects=true)
initEditForm()
Init edit settings form.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static redirect($a_script)
addCustomEditForm(ilPropertyFormGUI $a_form)
Add custom fields to edit form.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.