4include_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');
 
  197                        $this->
getType(),$this->object->getId());
 
  198                $record_gui->setInfoObject(
$info);
 
  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());
 
  276                $record_gui->setPropertyForm($form);
 
  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");
 
_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.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
New implementation of ilObjectGUI.
getType()
Functions that must be overwritten.
prepareOutput()
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
static _lookupObjId($a_id)
const TITLE_LENGTH
max length of object title
static _lookupTitle($a_id)
lookup object title
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
Constructor.
infoScreen()
show info screen
static _goto($a_target)
redirect script
infoScreenObject()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually,...
updateObject()
update object
addCustomEditForm(ilPropertyFormGUI $a_form)
Add custom fields to edit form.
editObject(ilPropertyFormGUI $a_form=null)
Edit settings.
showObject()
show remote object
addCustomInfoFields(ilInfoScreenGUI $a_info)
Add custom fields to info screen.
executeCommand()
execute command
initEditForm()
Init edit settings form.
callObject()
call remote object
updateCustomValues(ilPropertyFormGUI $a_form)
Update object custom values.
This class represents a text area property in a property form.
This class represents a text property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static redirect($a_script)
http redirect to other script
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.