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();
31 switch ($next_class) {
32 case 'ilinfoscreengui':
37 case 'ilpermissiongui':
38 $ilTabs->activateTab(
'id_permissions');
39 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
43 case "ilcommonactiondispatchergui":
44 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
46 $this->ctrl->forwardCommand($gui);
50 if (!$cmd || $cmd ==
'view') {
51 $cmd =
"editSettings";
67 if ($ilUser->getId() == ANONYMOUS_USER_ID ||
68 $this->
object->isLocalObject()) {
71 $link = $this->
object->getFullRemoteLink();
86 $this->lng->txt(
"info_short"),
87 $this->ctrl->getLinkTarget($this,
"infoScreen")
94 $this->lng->txt(
"edit"),
95 $this->ctrl->getLinkTarget($this,
"edit")
110 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
113 $this->
object->getRefId(),
114 $this->
object->getId(),
120 $link = $this->
object->getFullRemoteLink();
138 $this->ctrl->setCmd(
"showSummary");
139 $this->ctrl->setCmdClass(
"ilinfoscreengui");
151 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'), $ilErr->MESSAGE);
154 $ilTabs->activateTab(
'info');
156 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
159 if ($ilUser->getId() == ANONYMOUS_USER_ID ||
160 $this->
object->isLocalObject()) {
162 $this->lng->txt($this->getType() .
'_call'),
163 $this->
object->getRemoteLink(),
168 $this->lng->txt($this->getType() .
'_call'),
169 $this->ctrl->getLinkTarget($this,
'call'),
174 $info->addSection($this->lng->txt(
'ecs_general_info'));
175 $info->addProperty($this->lng->txt(
'title'), $this->
object->getTitle());
176 if (strlen($this->
object->getOrganization())) {
177 $info->addProperty($this->lng->txt(
'organization'), $this->
object->getOrganization());
179 if (strlen($this->
object->getDescription())) {
180 $info->addProperty($this->lng->txt(
'description'), $this->
object->getDescription());
182 if (strlen($loc = $this->
object->getLocalInformation())) {
183 $info->addProperty($this->lng->txt(
'ecs_local_information'), $this->
object->getLocalInformation());
188 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
195 $record_gui->parse();
197 $this->ctrl->forwardCommand(
$info);
219 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'), $ilErr->MESSAGE);
222 $ilTabs->activateTab(
'edit');
227 $this->tpl->setContent($a_form->getHTML());
237 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
239 $form->setFormAction($this->ctrl->getFormAction($this));
240 $form->setTitle($this->lng->txt(
'ecs_general_info'));
241 $form->addCommandButton(
'update', $this->lng->txt(
'save'));
242 $form->addCommandButton(
'edit', $this->lng->txt(
'cancel'));
248 $text->setDisabled(
true);
255 $area->setDisabled(
true);
256 $form->addItem($area);
258 $area =
new ilTextAreaInputGUI($this->lng->txt(
'ecs_local_information'),
'local_info');
262 $form->addItem($area);
266 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
273 $record_gui->parse();
295 $ilErr->raiseError($this->lng->txt(
'msg_no_perm_read'), $ilErr->MESSAGE);
299 if (
$form->checkInput()) {
300 $this->
object->setLocalInformation($a_form->getInput(
'local_info'));
304 $this->
object->update();
307 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
313 $record_gui->loadFromPost();
314 $record_gui->saveValues();
320 $form->setValuesByPost();
338 public static function _goto($a_target)
343 if ($ilAccess->checkAccess(
'visible',
'', $a_target)) {
344 $_GET[
"cmd"] =
"infoScreen";
345 $_GET[
"ref_id"] = $a_target;
346 $_GET[
"baseClass"] =
"ilRepositoryGUI";
347 include(
"ilias.php");
351 if ($ilAccess->checkAccess(
'read',
'', ROOT_FOLDER_ID)) {
352 $_GET[
"cmd"] =
"frameset";
353 $_GET[
"target"] =
"";
354 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
356 $lng->txt(
"msg_no_perm_read_item"),
359 $_GET[
"baseClass"] =
"ilRepositoryGUI";
360 include(
"ilias.php");
364 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
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
$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.
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.
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)
addCustomEditForm(ilPropertyFormGUI $a_form)
Add custom fields to edit form.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call