ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilLink Class Reference

Class for creating internal links on e.g repostory items. More...

+ Collaboration diagram for ilLink:

Static Public Member Functions

static _getLink ($a_ref_id, $a_type='', $a_params=array(), $append="")
 
static _getStaticLink ( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
 Get static link. More...
 

Detailed Description

Class for creating internal links on e.g repostory items.

This class uses goto.php to create permanent links

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 15 of file class.ilLink.php.

Member Function Documentation

◆ _getLink()

static ilLink::_getLink (   $a_ref_id,
  $a_type = '',
  $a_params = array(),
  $append = "" 
)
static

Definition at line 17 of file class.ilLink.php.

18 {
19 global $DIC;
20
21 $ilObjDataCache = $DIC["ilObjDataCache"];
22
23 if (!strlen($a_type)) {
24 $a_type = $ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($a_ref_id));
25 }
26 $param_string = '';
27 if (is_array($a_params) && count($a_params)) {
28 foreach ($a_params as $name => $value) {
29 $param_string .= ('&' . $name . '=' . $value);
30 }
31 }
32 switch ($a_type) {
33 case 'git':
34 //case 'pg':
35 return ILIAS_HTTP_PATH . '/' . IL_INTERNAL_LINK_SCRIPT . '?client_id=' . CLIENT_ID . $param_string . $append;
36
37 default:
38 return ILIAS_HTTP_PATH . '/' . IL_INTERNAL_LINK_SCRIPT . '?target=' . $a_type . '_' . $a_ref_id . $append . '&client_id=' . CLIENT_ID . $param_string;
39 }
40 }
if($format !==null) $name
Definition: metadata.php:146
global $DIC
Definition: saml.php:7
$a_type
Definition: workflow.php:92

References $a_type, $DIC, $name, and IL_INTERNAL_LINK_SCRIPT.

Referenced by LTI\ilMainMenuGUI\__construct(), ilCourseContentGUI\__renderItem(), _getStaticLink(), ilObjExternalFeedGUI\_goto(), ilObjItemGroupGUI\_goto(), ilObjPollGUI\_goto(), assQuestionGUI\addBackTab(), ilCalendarCategoryGUI\addReferenceLinks(), ilObjIndividualAssessmentGUI\addToNavigationHistory(), ilObjStudyProgrammeGUI\addToNavigationHistory(), ilECSCourseCreationHandler\addUrlEntry(), ilObjGlossaryGUI\addUsagesToInfo(), ilSurveyExecutionGUI\backToRepository(), ilObjectOwnershipManagementTableGUI\buildActions(), ilCalendarExport\buildAppointmentUrl(), ilSurveySyncTableGUI\buildPath(), ilRepUtilGUI\buildPath(), ilLPTableBaseGUI\buildPath(), assQuestionGUI\cancelSync(), ilObjectGUI\cloneAllObject(), ilObjectCopyGUI\copyContainerToTargets(), ilObjectCopyGUI\copyMultipleNonContainer(), ilGroupAddToGroupActionGUI\createGroupAndAddUser(), ilObjCourseGUI\createMailSignature(), ilObjGroupGUI\createMailSignature(), ilObjSessionGUI\createMailSignature(), ilMembershipMailGUI\createMailSignature(), ilLinkChecker\createPermanentLink(), ilMailNotification\createPermanentLink(), ilObjTestGUI\createUserResults(), ilCourseContentGUI\editTimings(), ilObjCategoryGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilPortfolioRepositoryGUI\executeCommand(), ilObjSessionGUI\executeCommand(), ilForumPostingDraftsBlockGUI\fillDataSection(), ilConditionHandlerTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilAvailableRolesStatusTableGUI\fillRow(), ilAdvancedMDRecordTableGUI\fillRow(), ilUsersOnlineBlockGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilTrSummaryTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilECSReleasedContentTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilObjectTableGUI\fillRow(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), ilObjContentObjectGUI\getBlockedUsersMailSignature(), ilTestRandomQuestionSetConfig\getCommaSeparatedSourceQuestionPoolLinks(), ilPersonalSkillsGUI\getEvalItem(), ilLPTableBaseGUI\getExportMeta(), ilCalendarAppointmentPanelGUI\getHTML(), ilObjGlossarySubItemListGUI\getHTML(), ilObjMediaPoolSubItemListGUI\getHTML(), ilADTInternalLinkPresentationBridge\getHTML(), ilPathGUI\getHTML(), ilObjectBadgeTableGUI\getItems(), ilNavigationHistory\getItems(), ilECSObjectSettings\getJsonCore(), ilBlogNewsRendererGUI\getObjectLink(), ilForumNewsRendererGUI\getObjectLink(), ilLearningModuleNewsRendererGUI\getObjectLink(), ilWikiNewsRendererGUI\getObjectLink(), ilNewsDefaultRendererGUI\getObjectLink(), ilContainerPageGUI\getProfileBackUrl(), ilObjTestDynamicQuestionSetConfig\getSourceQuestionPoolLink(), ilPersonalSkillsGUI\getSuggestedResources(), ilObjSurvey\getSurveyCodesForExport(), ilObjSurvey\getSurveyCodesTableData(), ilLPCollectionOfLMChapters\getTableGUIData(), ilObjTestGUI\getTabs(), ilObjItemGroupGUI\gotoParent(), ilMembershipRegistrationCodeUtils\handleCode(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilTestServiceGUI\handleTabs(), ilLMPresentationGUI\ilPage(), ilObjCourseGUI\initEditForm(), ilObjGroupGUI\initForm(), ilTaxonomyAdministrationRepositoryTableGUI\initItems(), ilMainMenuGUI\initMemberView(), ilObjAssessmentFolderGUI\logAdminObject(), ilTestSkillEvaluationGUI\manageTabs(), ilPCContentInclude\modifyPageContentPostXsl(), ilConsultationHoursTableGUI\parse(), ilRbacLogTableGUI\parseChangesFaPa(), ilObjMediaPoolSubItemListGUI\parseImage(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjQuestionPoolGUI\questionsObject(), ilExerciseManagementGUI\redirectFeedbackMailObject(), ilObjCourseGUI\redirectLocToTestConfirmedObject(), ilObjCourseGUI\redirectLocToTestObject(), ilPortfolioPageGUI\renderMyCourses(), ilObjUserGUI\roleassignmentObject(), ilObjExercise\sendAssignment(), ilObjSurvey\sendCodes(), ilLPTableBaseGUI\sendMail(), ilMembershipCronMinMembers\sendMessage(), ilWikiUtil\sendNotification(), ilBadgeHandler\sendNotification(), ilNote\sendNotifications(), ilObjSurveyGUI\sendUserResultsMail(), ilObjItemGroupGUI\setTabs(), ilLMPresentationGUI\showPreconditionsOfPage(), ilCourseContentGUI\showStartObjects(), ilNoteGUI\showTargets(), ilObjPollGUI\subscribe(), assQuestionGUI\sync(), ilObjPortfolioGUI\toRepository(), ilObjPollGUI\unsubscribe(), and ilObjPollGUI\vote().

+ Here is the caller graph for this function:

◆ _getStaticLink()

static ilLink::_getStaticLink (   $a_ref_id,
  $a_type = '',
  $a_fallback_goto = true,
  $append = "" 
)
static

Get static link.

@access public

Parameters
intreference id
stringobject type
boolfallback to goto.php if robots are disabled
Returns
string goto.html or goto.php link

Definition at line 53 of file class.ilLink.php.

58 {
59 global $DIC;
60
61 $ilObjDataCache = $DIC["ilObjDataCache"];
62
63 if (!strlen($a_type)) {
64 $a_type = $ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($a_ref_id));
65 }
66
67 include_once('Services/PrivacySecurity/classes/class.ilRobotSettings.php');
68 $robot_settings = ilRobotSettings::_getInstance();
69 if (!$robot_settings->robotSupportEnabled()) {
70 if ($a_fallback_goto) {
71 return ilLink::_getLink($a_ref_id, $a_type, array(), $append);
72 } else {
73 return false;
74 }
75 }
76
77 // urlencode for append is needed e.g. to process "/" in wiki page names correctly
78 return ILIAS_HTTP_PATH . '/goto_' . urlencode(CLIENT_ID) . '_' . $a_type . '_' . $a_ref_id . urlencode($append) . '.html';
79 }
static _getInstance()
Get instance.

References $a_type, $DIC, ilRobotSettings\_getInstance(), and _getLink().

Referenced by ilObjFileAccess\_getPermanentDownloadLink(), ilAppointmentPresentationGUI\addContainerInfo(), ilTemplate\addILIASFooter(), ilAppointmentPresentationGUI\addObjectLinks(), ilRepositoryExplorer\buildLinkTarget(), ilContactUserActionProvider\collectActionsForTargetUser(), ilAppointmentPresentationBookingPoolGUI\collectPropertiesAndActions(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilObjectListGUI\createDefaultCommand(), ilObjBlog\deliverRSS(), ilSurveyParticipantsGUI\editRatersObject(), ilSurveyEvaluationGUI\evaluation(), ilWikiHandlerGUI\executeCommand(), ilTermUsagesTableGUI\fillRow(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilSkillLevelTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilMStListCoursesGUI\getActions(), ilChatroom\getChatURL(), ilPublicUserProfileGUI\getEmbeddable(), ilBlogExerciseGUI\getExerciseInfo(), ilPortfolioExerciseGUI\getExerciseInfo(), ilDclIliasReferenceRecordFieldModel\getExportValue(), ilWorkspaceAccessHandler\getGotoLink(), ilCalendarAppointmentPanelGUI\getHTML(), ilObjLinkResourceSubItemListGUI\getHTML(), ilPermanentLinkGUI\getHTML(), ilPDSelectedItemsBlockSelectedItemsViewGUI\getIntroductionHtml(), ilDclIliasReferenceRecordRepresentation\getLinkHTML(), ilRepositoryExplorerGUI\getNodeHref(), ilPortfolioPageGUI\getPagePermaLink(), ilUserUtil\getStartingPointAsUrl(), ilObjLinkResourceGUI\handleSubItemLinks(), ilSurveyParticipantsGUI\mailRatersActionObject(), ilObjPortfolioBaseGUI\preview(), ilObjPortfolioGUI\printView(), ilMainMenuGUI\renderEntry(), ilObjBlogGUI\renderFullScreen(), ilObjBlogGUI\renderList(), ilBuddySystemNotification\send(), ilRegistrationMailNotification\send(), ilSkillNotifications\sendMail(), ilMembershipCronNotifications\sendMail(), ilRemoteObjectBase\sendNewContentNotification(), ilECSObjectSettings\sendNewContentNotification(), ilNote\sendNotifications(), ilObjSurvey\sendTutorNotification(), ilObjSurvey\sentReminder(), ilCalendarAppointmentGUI\showInfoScreen(), and ilContactGUI\submitInvitation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: