5require_once 
"./Services/Object/classes/class.ilObject2GUI.php";
 
    6include_once(
'./Modules/WebResource/classes/class.ilParameterAppender.php');
 
    7require_once 
'Services/LinkChecker/interfaces/interface.ilLinkCheckerGUIRowHandling.php';
 
   43                if(
$_GET[
"baseClass"] == 
'ilLinkResourceHandlerGUI')
 
   46                        $ilCtrl->saveParameter($this, 
'view_mode');
 
   50                $this->lng->loadLanguageModule(
"webr");
 
   52                $next_class = $this->ctrl->getNextClass($this);
 
   53                $cmd = $this->ctrl->getCmd();
 
   57                        case "ilinfoscreengui":
 
   63                                if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
 
   65                                        $ilErr->raiseError($this->lng->txt(
'permission_denied'),
$ilErr->WARNING);
 
   69                                $ilTabs->activateTab(
'id_meta_data');
 
   70                                include_once 
'Services/MetaData/classes/class.ilMDEditorGUI.php';
 
   71                                $md_gui =& 
new ilMDEditorGUI($this->object->getId(), 0, $this->object->getType());
 
   72                                $md_gui->addObserver($this->
object,
'MDUpdateListener',
'General');
 
   73                                $this->ctrl->forwardCommand($md_gui);
 
   76                        case 'ilpermissiongui':
 
   78                                $ilTabs->activateTab(
'id_permissions');
 
   79                                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   81                                $ret =& $this->ctrl->forwardCommand($perm_gui);
 
   84                        case 'ilobjectcopygui':
 
   86                                include_once 
'./Services/Object/classes/class.ilObjectCopyGUI.php';
 
   89                                $this->ctrl->forwardCommand($cp);
 
   94                                $this->tabs_gui->setTabActive(
'export');
 
   95                                include_once 
'./Services/Export/classes/class.ilExportGUI.php';
 
   97                                $exp->addFormat(
'xml');
 
   98                                $this->ctrl->forwardCommand($exp);
 
  101                        case "ilcommonactiondispatchergui":
 
  102                                include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
 
  104                                $this->ctrl->forwardCommand($gui);
 
  107                        case "ilpropertyformgui":                                                                                                       
 
  108                                include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  110                                $this->ctrl->forwardCommand($this->form);
 
  113                        case "ilinternallinkgui":
 
  114                                $this->lng->loadLanguageModule(
"content");
 
  115                                require_once(
"./Services/Link/classes/class.ilInternalLinkGUI.php");
 
  117                                $link_gui->filterLinkType(
"PageObject");
 
  118                                $link_gui->filterLinkType(
"GlossaryItem");
 
  119                                $link_gui->filterLinkType(
"RepositoryItem");
 
  120                                $link_gui->setFilterWhiteList(
true);
 
  121                                $link_gui->setMode(
"asynch");                   
 
  122                                $ilCtrl->forwardCommand($link_gui);
 
  128                                        $this->ctrl->setCmd(
"view");
 
  130                                parent::executeCommand();
 
  136                        include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
 
  170                        $this->form->setValuesByPost();
 
  171                        $this->tpl->setContent($this->form->getHTML());
 
  178                $this->link->setLinkResourceId($a_new_object->
getId());
 
  179                $link_id = $this->link->add();
 
  180                $this->link->updateValid(
true);
 
  185                if($this->id_type == self::WORKSPACE_NODE_ID)
 
  187                        $this->ctrl->redirect($this, 
"editLinks");                      
 
  193                                $a_new_object->
getRefId().
"&cmd=switchViewMode&switch_mode=2");
 
  207                $ilTabs->activateTab(
'id_settings');
 
  210                $this->tpl->setContent($this->form->getHTML());
 
  222                $ilTabs->activateTab(
'id_settings');
 
  225                if($this->form->checkInput())
 
  227                        $this->
object->setTitle($this->form->getInput(
'tit'));
 
  228                        $this->
object->setDescription($this->form->getInput(
'des'));
 
  229                        $this->
object->update();
 
  231                        include_once 
'./Services/Container/classes/class.ilContainerSortingSettings.php';
 
  233                        $sort->setSortMode($this->form->getInput(
'sor'));
 
  237                        $this->ctrl->redirect($this,
'settings');
 
  240                $this->form->setValuesByPost();
 
  242                $this->tpl->setContent($this->form->getHTML());
 
  252                include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  254                $this->form->setFormAction($this->ctrl->getFormAction($this,
'saveSettings'));
 
  255                $this->form->setTitle($this->lng->txt(
'webr_edit_settings'));
 
  258                $tit = 
new ilTextInputGUI($this->lng->txt(
'webr_list_title'),
'tit');
 
  259                $tit->setValue($this->object->getTitle());
 
  260                $tit->setRequired(
true);
 
  262                $tit->setMaxLength(127);
 
  263                $this->form->addItem($tit);
 
  267                $des->setValue($this->object->getDescription());
 
  270                $this->form->addItem($des);
 
  273                include_once 
'./Services/Container/classes/class.ilContainerSortingSettings.php';
 
  274                include_once 
'./Services/Container/classes/class.ilContainer.php';
 
  277                $sor->setRequired(
true);
 
  278                include_once 
'./Services/Container/classes/class.ilContainerSortingSettings.php';
 
  282                        $this->lng->txt(
'webr_sort_title'),
 
  285                $sor->addOption($opt);
 
  288                        $this->lng->txt(
'webr_sort_manual'),
 
  291                $sor->addOption($opm);
 
  292                $this->form->addItem($sor);
 
  294                $this->form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
 
  295                $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
 
  310                if(!(
int) 
$_GET[
'link_id'])
 
  313                        $ilCtrl->redirect($this,
'view');
 
  318                $this->tpl->setContent($this->form->getHTML());
 
  332                        $this->link->setLinkId((
int) 
$_REQUEST[
'link_id']);
 
  333                        $this->link->update();
 
  336                                $this->dynamic->add((
int) 
$_REQUEST[
'link_id']);
 
  341                                $this->
object->setTitle($this->form->getInput(
'tit'));
 
  342                                $this->
object->setDescription($this->form->getInput(
'des'));
 
  343                                $this->
object->update();
 
  347                        $ilCtrl->redirect($this,
'view');
 
  350                $this->form->setValuesByPost();
 
  351                $this->tpl->setContent($this->form->getHTML());
 
  364                $this->tpl->setContent($this->form->getHTML());
 
  378                if($this->
checkLinkInput(self::LINK_MOD_ADD,$this->object->getId(),0))
 
  383                                $this->
object->setTitle($this->form->getInput(
'lti'));
 
  384                                $this->
object->setDescription($this->form->getInput(
'tde'));
 
  385                                $this->
object->update();
 
  389                        $link_id = $this->link->add();
 
  390                        $this->link->updateValid(
true);
 
  395                                $this->dynamic->add($link_id);
 
  398                        $ilCtrl->redirect($this,
'view');
 
  402                $this->form->setValuesByPost();
 
  405                $this->tpl->setContent($this->form->getHTML());
 
  418                $this->ctrl->setParameter($this,
'link_id',(
int) 
$_GET[
'link_id']);
 
  420                if(!isset(
$_GET[
'param_id']))
 
  423                        $ilCtrl->redirect($this,
'view');
 
  426                include_once 
'./Modules/WebResource/classes/class.ilParameterAppender.php';
 
  428                $param->delete((
int) 
$_GET[
'param_id']);
 
  431                $ilCtrl->redirect($this,
'editLinks');
 
  440                if(!isset(
$_GET[
'param_id']))
 
  443                        $ilCtrl->redirect($this,
'view');
 
  446                include_once 
'./Modules/WebResource/classes/class.ilParameterAppender.php';
 
  448                $param->delete((
int) 
$_GET[
'param_id']);
 
  451                $ilCtrl->redirect($this,
'view');
 
  467                if(!is_array(
$_POST[
'ids']))
 
  470                        $ilCtrl->redirect($this,
'view');
 
  475                foreach(
$_POST[
'ids'] as $link_id)
 
  480                        if(
$_POST[
'tar_'.$link_id.
'_ajax_type'] &&
 
  481                                $_POST[
'tar_'.$link_id.
'_ajax_id'])
 
  484                                        $_POST[
'tar_'.$link_id.
'_ajax_type'].
'|'.
 
  485                                        $_POST[
'tar_'.$link_id.
'_ajax_id'];     
 
  489                        if(!strlen(
$data[
'tit']))
 
  491                                $invalid[] = $link_id;
 
  494                        if(!strlen(
$data[
'tar']))
 
  496                                $invalid[] = $link_id;
 
  501                                $invalid[] = $link_id;
 
  506                                $invalid[] = $link_id;
 
  514                        $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
 
  516                        include_once 
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
 
  518                        $table->setInvalidLinks($invalid);
 
  519                        $table->parseSelectedLinks(
$_POST[
'ids']);
 
  520                        $table->updateFromPost();
 
  521                        $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
 
  525                include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
  529                foreach(
$_POST[
'ids'] as $link_id)
 
  535                        $links->setLinkId($link_id);
 
  539                        $links->setActiveStatus((
int) 
$data[
'act']);
 
  540                        $links->setDisableCheckStatus((
int) 
$data[
'che']);
 
  541                        $links->setLastCheckDate($orig[
'last_check']);
 
  542                        $links->setValidStatus((
int) 
$data[
'vali']);
 
  549                                $param->setValue((
int) 
$data[
'val']);
 
  550                                $param->add($link_id);
 
  557                                $this->
object->update();
 
  564                $ilCtrl->redirect($this,
'view');                                                        
 
  574                include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
  577                $values = $link->getItem($a_link_id);
 
  583                $this->form->setValuesByArray(
 
  585                                'tit'           => $values[
'title'],
 
  586                                'tar'           => $values[
'target'],
 
  587                                'des'           => $values[
'description'],
 
  588                                'act'           => (
int) $values[
'active'],
 
  589                                'che'           => (
int) $values[
'disable_check'],
 
  590                                'vali'          => (
int) $values[
'valid']
 
  605                $valid = $this->form->checkInput();
 
  607                include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
  609                $this->link->setTarget(str_replace(
'"', 
'', 
ilUtil::stripSlashes($this->form->getInput(
'tar'))));
 
  610                $this->link->setTitle($this->form->getInput(
'tit'));
 
  611                $this->link->setDescription($this->form->getInput(
'des'));
 
  612                $this->link->setDisableCheckStatus($this->form->getInput(
'che'));
 
  614                if($a_mode == self::LINK_MOD_CREATE)
 
  616                        $this->link->setActiveStatus(
true);
 
  620                        $this->link->setActiveStatus($this->form->getInput(
'act'));
 
  623                if($a_mode == self::LINK_MOD_EDIT)
 
  625                        $this->link->setValidStatus($this->form->getInput(
'vali'));
 
  629                        $this->link->setValidStatus(
true);
 
  638                $this->dynamic->setName($this->form->getInput(
'nam'));
 
  639                $this->dynamic->setValue($this->form->getInput(
'val'));
 
  640                if(!$this->dynamic->validate())
 
  642                        switch($this->dynamic->getErrorCode())
 
  645                                        $this->form->getItemByPostVar(
'nam')->setAlert($this->lng->txt(
'links_no_name_given'));
 
  649                                        $this->form->getItemByPostVar(
'val')->setAlert($this->lng->txt(
'links_no_value_given'));
 
  656                        $this->dynamic = 
null;
 
  671                $ilTabs->activateTab(
"id_content");
 
  673                include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  680                                $this->ctrl->setParameter($this,
'new_type',
'webr');
 
  681                                $this->form->setTitle($this->lng->txt(
'webr_new_link'));
 
  682                                $this->form->setTableWidth(
'600px');
 
  685                                $this->form->addCommandButton(
'save', $this->lng->txt(
'webr_add'));
 
  686                                $this->form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
 
  691                                $this->form->setTitle($this->lng->txt(
'webr_new_link'));
 
  694                                $this->form->addCommandButton(
'saveAddLink', $this->lng->txt(
'webr_add'));
 
  695                                $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
 
  700                                $this->ctrl->setParameter($this,
'link_id',(
int) 
$_REQUEST[
'link_id']);
 
  701                                $this->form->setTitle($this->lng->txt(
'webr_edit'));
 
  704                                $this->form->addCommandButton(
'updateLink', $this->lng->txt(
'save'));
 
  705                                $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
 
  710                $this->form->setFormAction($this->ctrl->getFormAction($this));
 
  717                        $this->form->setTitle($this->lng->txt(
'webr_edit_list'));
 
  720                        $title = 
new ilTextInputGUI($this->lng->txt(
'webr_list_title'),
'lti');
 
  721                        $title->setRequired(
true);
 
  723                        $title->setMaxLength(127);
 
  724                        $this->form->addItem($title);
 
  730                        $this->form->addItem($desc);
 
  734                        $sect->setTitle($this->lng->txt(
'webr_add'));
 
  735                        $this->form->addItem($sect);
 
  746                include_once 
'Services/Form/classes/class.ilLinkInputGUI.php';
 
  747                $tar = 
new ilLinkInputGUI($this->lng->txt(
'webr_link_target'),
'tar');
 
  748                $tar->setInternalLinkFilterTypes(array(
"PageObject", 
"GlossaryItem", 
"RepositoryItem"));
 
  750                $tar->setRequired(
true);
 
  751                $this->form->addItem($tar);             
 
  754                $tit = 
new ilTextInputGUI($this->lng->txt(
'webr_link_title'),
'tit');
 
  755                $tit->setRequired(
true);
 
  757                $tit->setMaxLength(127);
 
  758                $this->form->addItem($tit);
 
  764                $this->form->addItem($des);
 
  767                if($a_mode != self::LINK_MOD_CREATE)
 
  771                        $act->setChecked(
true);
 
  773                        $this->form->addItem($act);
 
  778                        $this->form->addItem($che);
 
  782                if($a_mode == self::LINK_MOD_EDIT)
 
  785                        $this->form->addItem($val);
 
  791                        $dyn->setInfo($this->lng->txt(
'links_dynamic_info'));
 
  797                                $dyn->addSubItem($ex);
 
  799                                foreach($links as $id => $link)
 
  803                                        $ptpl = 
new ilTemplate(
'tpl.link_dyn_param_edit.html',
true,
true,
'Modules/WebResource');
 
  805                                        $this->ctrl->setParameter($this,
'param_id',$id);
 
  806                                        $ptpl->setVariable(
'LINK_DEL',$this->ctrl->getLinkTarget($this,
'deleteParameterForm'));
 
  807                                        $ptpl->setVariable(
'LINK_TXT',$this->lng->txt(
'delete'));
 
  808                                        $p->setHtml($ptpl->get());
 
  809                                        $dyn->addSubItem($p);
 
  816                        if($a_mode != self::LINK_MOD_CREATE)
 
  818                                #$new = new ilCustomInputGUI($this->lng->txt('links_add_param'),''); 
  819                                #$dyn->addSubItem($new); 
  825                        $nam->setMaxLength(128);
 
  826                        $dyn->addSubItem($nam);
 
  832                        $dyn->addSubItem($val);
 
  834                        $this->form->addItem($dyn);
 
  845                include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
  880                $ilTabs->activateTab(
"id_content");
 
  884                if (strtolower(
$_GET[
"baseClass"]) == 
"iladministrationgui")
 
  899                                        include_once 
'./Services/Container/classes/class.ilContainerSortingSettings.php';                                       
 
  912                $GLOBALS[
'tpl']->setPermanentLink($this->object->getType(),$this->object->getRefId());
 
  925                $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
 
  928                include_once 
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
 
  932                include_once 
'./Services/Link/classes/class.ilInternalLinkGUI.php';
 
  935                $this->tpl->addJavaScript(
"Modules/WebResource/js/intLink.js");
 
  936                $this->tpl->addJavascript(
"Services/Form/js/Form.js");
 
  938                $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML().$js);
 
  950                include_once 
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
 
  954                $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
 
  956                $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
 
  968                include_once 
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
 
  972                $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
 
  974                $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
 
  985                include_once 
'./Services/Container/classes/class.ilContainerSorting.php';
 
  987                $sort->savePost((array) 
$_POST[
'position']);
 
 1006                include_once 
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
 
 1008                $tool->setFormAction($this->ctrl->getFormAction($this));
 
 1010                        $this->lng->txt(
'webr_add'),
 
 1011                        $this->ctrl->getLinkTarget($this,
'addLink')
 
 1014                $this->tpl->setVariable($a_tpl_var,$tool->getHTML());
 
 1027                $link_ids = array();
 
 1029                if(is_array(
$_POST[
'link_ids']))
 
 1031                        $link_ids =
$_POST[
'link_ids'];
 
 1033                elseif(isset(
$_GET[
'link_id']))
 
 1035                        $link_ids = array(
$_GET[
'link_id']);
 
 1038                if(!count($link_ids) > 0)
 
 1045                include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
 1048                include_once 
'Services/Utilities/classes/class.ilConfirmationGUI.php';
 
 1050                $confirm->setFormAction($this->ctrl->getFormAction($this,
'view'));
 
 1051                $confirm->setHeaderText($this->lng->txt(
'webr_sure_delete_items'));
 
 1052                $confirm->setConfirm($this->lng->txt(
'delete'), 
'deleteLinks');
 
 1053                $confirm->setCancel($this->lng->txt(
'cancel'), 
'view');
 
 1055                foreach($link_ids as $link_id)
 
 1057                        $link = $links->getItem($link_id);
 
 1058                        $confirm->addItem(
'link_ids[]', $link_id,$link[
'title']);
 
 1060                $this->tpl->setContent($confirm->getHTML());
 
 1073                include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
 1076                foreach(
$_POST[
'link_ids'] as $link_id)
 
 1078                        $links->delete($link_id);
 
 1081                $ilCtrl->redirect($this,
'view');
 
 1094                include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
 1097                if(!
$_GET[
'link_id'])
 
 1100                        $ilCtrl->redirect($this,
'view');
 
 1103                $links->setLinkId((
int) 
$_GET[
'link_id']);
 
 1104                $links->updateActive(
false);
 
 1107                $ilCtrl->redirect($this,
'view');
 
 1118                $this->ctrl->setCmd(
"showSummary");
 
 1119                $this->ctrl->setCmdClass(
"ilinfoscreengui");
 
 1131                $ilTabs->activateTab(
'id_info');
 
 1133                include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
 
 1136                $info->enablePrivateNotes();
 
 1139                $info->addMetaDataSections($this->object->getId(),0, $this->object->getType());
 
 1141                if($this->id_type == self::WORKSPACE_NODE_ID)
 
 1143                        $info->addProperty($this->lng->txt(
"perma_link"), $this->getPermanentLinkWidget());
 
 1147                $this->ctrl->forwardCommand($info);
 
 1156                $ilTabs->activateTab(
'id_history');
 
 1158                include_once(
"./Services/History/classes/class.ilHistoryTableGUI.php");
 
 1159                $hist_gui = 
new ilHistoryTableGUI($this, 
"history", $this->object->getId(), $this->object->getType);
 
 1160                $hist_gui->initTable();
 
 1161                $this->tpl->setContent($hist_gui->getHTML());
 
 1174                $this->
object->items_obj->readItem($row[
'page_id']);
 
 1175                $row[
'title'] = $this->
object->items_obj->getTitle();   
 
 1177                require_once 
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
 
 1179                $actions->setSelectionHeaderClass(
'small');     
 
 1180                $actions->setItemLinkClass(
'xsmall');           
 
 1181                $actions->setListTitle($this->lng->txt(
'actions'));             
 
 1183                $this->ctrl->setParameter($this, 
'link_id', 
$row[
'page_id']);           
 
 1185                        $this->lng->txt(
'edit'),
 
 1187                        $this->ctrl->getLinkTarget($this, 
'editLink')
 
 1189                $this->ctrl->clearParameters($this);
 
 1204                $ilTabs->activateTab(
'id_link_check');
 
 1207                $this->
object->initLinkResourceItemsObject();
 
 1209                require_once 
'./Services/LinkChecker/classes/class.ilLinkCheckerTableGUI.php';
 
 1213                if((
bool)
$ilias->getSetting(
'cron_web_resource_check'))
 
 1215                        include_once 
'./Services/LinkChecker/classes/class.ilLinkCheckNotify.php';
 
 1216                        include_once 
'Services/Form/classes/class.ilPropertyFormGUI.php';
 
 1218                        $chb = 
new ilCheckboxInputGUI($this->lng->txt(
'link_check_message_a'), 
'link_check_message');
 
 1221                        $chb->setOptionTitle($this->lng->txt(
'link_check_message_b'));
 
 1223                        $toolbar->addInputItem($chb);
 
 1224                        $toolbar->addFormButton($this->lng->txt(
'save'), 
'saveLinkCheck');
 
 1225                        $toolbar->setFormAction($this->ctrl->getLinkTarget($this, 
'saveLinkCheck'));
 
 1229                $tgui->setLinkChecker($this->link_checker_obj)
 
 1230                         ->setRowHandler($this)
 
 1231                         ->setRefreshButton($this->lng->txt(
'refresh'), 
'refreshLinkCheck');
 
 1233                return $tpl->setContent($tgui->prepareHTML()->getHTML().$toolbar->getHTML());
 
 1240                include_once 
'./Services/LinkChecker/classes/class.ilLinkCheckNotify.php';
 
 1243                $link_check_notify->setUserId(
$ilUser->getId());
 
 1244                $link_check_notify->setObjId($this->object->getId());
 
 1246                if(
$_POST[
'link_check_message'])
 
 1249                        $link_check_notify->addNotifier();
 
 1254                        $link_check_notify->deleteNotifier();
 
 1267                if(!$this->link_checker_obj->checkPear())
 
 1276                $this->
object->initLinkResourceItemsObject();
 
 1279                $this->
object->items_obj->updateValidByCheck();
 
 1281                foreach($this->link_checker_obj->checkWebResourceLinks() as $invalid)
 
 1283                        $this->
object->items_obj->readItem($invalid[
'page_id']);
 
 1284                        $this->
object->items_obj->setActiveStatus(
false);
 
 1285                        $this->
object->items_obj->setValidStatus(
false);
 
 1286                        $this->
object->items_obj->update(
false);
 
 1289                $this->
object->items_obj->updateLastCheck();
 
 1301                include_once 
'./Services/LinkChecker/classes/class.ilLinkChecker.php';
 
 1304                $this->link_checker_obj->setObjId($this->object->getId());
 
 1320                switch($a_active_tab)
 
 1325                                        $this->lng->loadLanguageModule(
'cntr');
 
 1327                                        $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_VIEW);
 
 1328                                        $ilTabs->addSubTab(
'id_content_view',
 
 1330                                                $this->ctrl->getLinkTarget($this,
'switchViewMode')
 
 1332                                        $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_MANAGE);
 
 1333                                        $ilTabs->addSubTab(
'id_content_manage',
 
 1334                                                $lng->txt(
'cntr_manage'),
 
 1335                                                $this->ctrl->getLinkTarget($this,
'switchViewMode')
 
 1337                                        include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
 1338                                        include_once 
'./Services/Container/classes/class.ilContainerSortingSettings.php';
 
 1339                                        include_once 
'./Services/Container/classes/class.ilContainer.php';
 
 1343                                                $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_SORT);
 
 1344                                                $ilTabs->addSubTab(
'id_content_ordering',
 
 1345                                                        $this->lng->txt(
'cntr_ordering'),
 
 1346                                                        $this->ctrl->getLinkTarget($this,
'switchViewMode')
 
 1350                                        $ilCtrl->clearParameters($this);
 
 1351                                        $ilTabs->activateSubTab($a_active_subtab);
 
 1355                $ilTabs->activateTab(
'id_content');
 
 1365                global $ilTabs, 
$lng, $ilHelp;
 
 1367                $ilHelp->setScreenIdComponent(
"webr");
 
 1371                        $ilTabs->addTab(
"id_content",
 
 1372                                $lng->txt(
"content"),
 
 1373                                $this->ctrl->getLinkTarget($this, 
"view"));
 
 1378                        $ilTabs->addTab(
"id_info",
 
 1379                                $lng->txt(
"info_short"),
 
 1380                                $this->ctrl->getLinkTarget($this, 
"infoScreen"));
 
 1385                        include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
 1388                                $ilTabs->addTab(
"id_settings",
 
 1389                                        $lng->txt(
"settings"),
 
 1390                                        $this->ctrl->getLinkTarget($this, 
"settings"));
 
 1397                        $ilTabs->addTab(
"id_history",
 
 1398                                $lng->txt(
"history"),
 
 1399                                $this->ctrl->getLinkTarget($this, 
"history"));
 
 1405                        if(@include_once(
'HTTP/Request.php'))
 
 1407                                $ilTabs->addTab(
"id_link_check",
 
 1408                                        $lng->txt(
"link_check"),
 
 1409                                        $this->ctrl->getLinkTarget($this, 
"linkChecker"));
 
 1415                        $ilTabs->addTab(
"id_meta_data",
 
 1416                                $lng->txt(
"meta_data"),
 
 1417                                $this->ctrl->getLinkTargetByClass(
'ilmdeditorgui',
'listSection'));
 
 1424                                $this->lng->txt(
'export'),
 
 1425                                $this->ctrl->getLinkTargetByClass(
'ilexportgui',
'')
 
 1437                $this->tpl->addBlockFile(
"CONTENT", 
"content", 
"tpl.adm_content.html");
 
 1438                $this->tpl->addBlockFile(
"STATUSLINE", 
"statusline", 
"tpl.statusline.html");
 
 1440                $this->tpl->setLocator();
 
 1456                if (is_object($this->
object))
 
 1458                        $ilLocator->addItem($this->object->getTitle(),$this->ctrl->getLinkTarget($this),
"",$this->object->getRefId(), 
"webr");
 
 1465                include_once 
"Services/Form/classes/class.ilFormPropertyGUI.php";
 
 1466                include_once 
"Services/Form/classes/class.ilLinkInputGUI.php";                                                          
 
 1469                        include_once(
"./Services/Link/classes/class.ilLink.php");
 
 1472                        $parts = explode(
"|", $a_target);
 
 1474                        if($parts[0] == 
"term")
 
 1481                                        "&target=git_".$parts[1]
 
 1485                        if($parts[0] == 
"page")
 
 1498                $obj_id = $this->
object->getId();
 
 1500                include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
 1508                                include_once 
'./Modules/WebResource/classes/class.ilParameterAppender.php';
 
 1523                        $obj_id = $this->
object->getId();
 
 1525                        include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
 1527                        $item = $items->getItem(
$_REQUEST[
"link_id"]);
 
 1532                                include_once 
'./Modules/WebResource/classes/class.ilParameterAppender.php';
 
 1549                        require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
 
 1557        public static function _goto($a_target, $a_additional = 
null)
 
 1561                if($a_additional && substr($a_additional, -3) == 
"wsp")
 
 1563                        $_GET[
"baseClass"] = 
"ilsharedresourceGUI";     
 
 1564                        $_GET[
"wsp_id"] = $a_target;            
 
 1565                        include(
"ilias.php");
 
 1570                if ($ilAccess->checkAccess(
"read", 
"", $a_target))
 
 1572                        ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=$a_target");
 
 1577                        if ($ilAccess->checkAccess(
"visible", 
"", $a_target))
 
 1579                                ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=".$a_target.
"&cmd=infoScreen");
 
 1583                                if ($ilAccess->checkAccess(
"read", 
"", ROOT_FOLDER_ID))
 
const LINKS_ERR_NO_NAME_VALUE
User interface class for advanced drop-down selection lists.
_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
Confirmation screen class.
static _lookupSortMode($a_obj_id)
lookup sort mode
static _getInstance($a_obj_id)
get instance by obj_id
Export User Interface Class.
Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE Date: 24....
getInitHTML($a_url, $a_move_to_body=false)
Get initialisation HTML to use interna link editing.
class for checking external links in page objects.
_getNotifyStatus($a_usr_id, $a_obj_id)
class ilLinkCheckerTableGUI
class for checking external links in page objects Normally used in Cron jobs, but should be extensibl...
Class ilObjLinkResourceGUI.
static lookupItem($a_webr_id, $a_link_id)
static _getFirstLink($a_webr_id)
Get first link item Check before with _isSingular() if there is more or less than one.
static _isSingular($a_webr_id)
Check whether there is only one active link in the web resource.
static lookupNumberOfLinks($a_webr_id)
Get number of assigned links.
static _getStaticLink($a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static _fillHTMLMetaTags($a_rbac_id, $a_obj_id, $a_type)
Fill html meta tags.
This class represents a non editable value in a property form.
Class ilObjLinkResourceGUI.
confirmDeleteLink()
Show delete confirmation screen.
addLocatorItems()
Functions to be overwritten.
deleteParameter()
Delete a dynamic parameter.
redirectToLink($a_ref_id, $a_obj_id, $a_url)
showLinks()
Show all active links.
infoScreen()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually,...
activateTabs($a_active_tab, $a_active_subtab='')
Activate tab and subtabs.
checkLinkInput($a_mode, $a_webr_id=0, $a_link_id=0)
Check input after creating a new link.
switchViewMode()
Switch between "View" "Manage" and "Sort".
showToolbar($a_tpl_var)
Show toolbar.
saveSorting()
Save nmanual sorting.
initCreateForm($a_new_type)
Init object creation form.
initFormLink($a_mode)
Show create/edit single link.
formatInvalidLinkArray(Array $row)
afterSave(ilObject $a_new_object)
Post (successful) object creation hook.
updateLinks()
Update all visible links.
setTabs()
get tabs @access public
saveAddLink()
Save form data.
saveSettings()
Save container settings.
editLink()
Edit a single link.
getType()
Functions that must be overwritten.
handleSubItemLinks($a_target)
linkChecker()
Show link validation.
settings()
Edit settings Title, Description, Sorting.
editLinks()
Start with manage mode.
isContainerMetaDataRequired()
Check if a new container title is required Necessary if there is more than one link.
executeCommand()
execute command
static _goto($a_target, $a_additional=null)
deactivateLink()
Deactivate links.
addLink()
Add an additional link.
deleteLinks()
Delete links.
setValuesFromLink($a_link_id)
Set form values from link.
save()
Save new object @access public.
updateLink()
Save after editing.
infoScreenForward()
show information screen
initFormSettings()
Show settings form.
New implementation of ilObjectGUI.
prepareOutput()
prepare output
checkPermission($a_perm, $a_cmd="")
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
getCreationMode()
get creation mode
GUI class for the workflow of copying objects.
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
addHeaderAction()
Add header action menu.
Class ilObject Basic functions for all objects.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
getRefId()
get reference id @access public
getId()
get object id @access public
Class ilParameterAppender.
static parameterToInfo($a_name, $a_value)
Get info text describing an existing dynamic link.
static _append($a_link_data)
static _getOptionSelect()
Get options as array.
static _getParams($a_link_id)
Get dynamic parameter definitions.
static _isEnabled()
Check if dynamic parameters are enabled.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
This class represents an option in a radio group.
special template class to simplify handling of ITX/PEAR
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.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static infoPanel($a_keep=true)
TableGUI class for search results.
TableGUI class for search results.
interface ilLinkCheckerGUIRowHandling
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']