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 $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');
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'));
255 $text->setDisabled(
true);
256 $form->addItem(
$text);
262 $area->setDisabled(
true);
263 $form->addItem($area);
265 $area =
new ilTextAreaInputGUI($this->lng->txt(
'ecs_local_information'),
'local_info');
269 $form->addItem($area);
273 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
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');
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);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
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
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
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.
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)
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.
showObject()
show remote object
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Create new PHPExcel object
obj_idprivate
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)
http redirect to other script
addCustomEditForm(ilPropertyFormGUI $a_form)
Add custom fields to edit form.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call