ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

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(), ilInfoScreenGUI\addPreconditionSection(), ilCalendarCategoryGUI\addReferenceLinks(), ilObjLearningSequenceGUI\addToNavigationHistory(), ilObjIndividualAssessmentGUI\addToNavigationHistory(), ilObjContentPageGUI\addToNavigationHistory(), ilObjStudyProgrammeGUI\addToNavigationHistory(), ilECSCourseCreationHandler\addUrlEntry(), ilObjGlossaryGUI\addUsagesToInfo(), ilSurveyExecutionGUI\backToRepository(), ilObjectOwnershipManagementTableGUI\buildActions(), ilCalendarExport\buildAppointmentUrl(), ilAppointmentPresentationExerciseGUI\buildDirectLinkForAppointment(), ilSurveySyncTableGUI\buildPath(), ilLPTableBaseGUI\buildPath(), ilRepUtilGUI\buildPath(), assQuestionGUI\cancelSync(), ilExAssignmentReminder\checkReminders(), ilObjectGUI\cloneAllObject(), ilObjectCopyGUI\copyContainerToTargets(), ilObjectCopyGUI\copyMultipleNonContainer(), ilGroupAddToGroupActionGUI\createGroupAndAddUser(), ilMembershipMailGUI\createMailSignature(), ilObjLearningSequenceGUI\createMailSignature(), ilObjGroupGUI\createMailSignature(), ilObjSessionGUI\createMailSignature(), ilObjCourseGUI\createMailSignature(), ilLinkChecker\createPermanentLink(), ilMailNotification\createPermanentLink(), ilParticipantsTestResultsGUI\createUserResults(), ilObjDataCollection\doUpdate(), ilCourseContentGUI\editTimings(), ilObjGroupGUI\executeCommand(), ilObjectPluginGUI\executeCommand(), ilObjSessionGUI\executeCommand(), ilObjCategoryGUI\executeCommand(), ilPortfolioRepositoryGUI\executeCommand(), ilObjForumGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilForumPostingDraftsBlockGUI\fillDataSection(), ilConditionHandlerTableGUI\fillRow(), ilAvailableRolesStatusTableGUI\fillRow(), ilAdvancedMDRecordTableGUI\fillRow(), ilLPCollectionSettingsTableGUI\fillRow(), ilECSReleasedContentTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilDidacticTemplateSettingsTableGUI\fillRow(), ilObjectTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilTrSummaryTableGUI\fillRow(), ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\RepositoryLink\getAction(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), ilObjContentObjectGUI\getBlockedUsersMailSignature(), ilTestRandomQuestionSetConfig\getCommaSeparatedSourceQuestionPoolLinks(), ilScormMailTemplateLPContext\getDescription(), ilCourseMailTemplateTutorContext\getDescription(), ilCourseMailTemplateMemberContext\getDescription(), ilSurveyMailTemplateReminderContext\getDescription(), ilBadgeLearningHistoryProvider\getEntries(), ilPersonalSkillsGUI\getEvalItem(), ilLPTableBaseGUI\getExportMeta(), ilObjForumGUI\getForumObjects(), ilADTInternalLinkPresentationBridge\getHTML(), ilObjMediaPoolSubItemListGUI\getHTML(), ilObjGlossarySubItemListGUI\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), ilPathGUI\getHTML(), ilTimingsCronReminder\getInformationForRefId(), ilObjectBadgeTableGUI\getItems(), ilNavigationHistory\getItems(), ilECSObjectSettings\getJsonCore(), ilExcRepoObjAssignmentInfo\getLinks(), ilObjAssessmentFolderGUI\getLogDataOutputForm(), ilForumNewsRendererGUI\getObjectLink(), ilWikiNewsRendererGUI\getObjectLink(), ilLearningModuleNewsRendererGUI\getObjectLink(), ilBlogNewsRendererGUI\getObjectLink(), ilNewsDefaultRendererGUI\getObjectLink(), ilContainerPageGUI\getProfileBackUrl(), ilObjTestDynamicQuestionSetConfig\getSourceQuestionPoolLink(), ilObjLearningSequenceContentTableGUI\getStdLink(), ilPersonalSkillsGUI\getSuggestedResources(), ilObjSurvey\getSurveyCodesForExport(), ilObjSurvey\getSurveyCodesTableData(), ilLPCollectionOfLMChapters\getTableGUIData(), ilObjTestGUI\getTabs(), ilObjItemGroupGUI\gotoParent(), ilMembershipRegistrationCodeUtils\handleCode(), ilLPListOfSettingsGUI\handleLPUsageInfo(), ilLMPresentationGUI\ilPage(), ilObjCourseGUI\initEditForm(), ilObjGroupGUI\initForm(), ilTaxonomyAdministrationRepositoryTableGUI\initItems(), ilMainMenuGUI\initMemberView(), ilUserCertificateGUI\listCertificates(), ilObjAssessmentFolderGUI\logAdminObject(), ilPCContentInclude\modifyPageContentPostXsl(), ilConsultationHoursTableGUI\parse(), ilRbacLogTableGUI\parseChangesFaPa(), ilObjMediaPoolSubItemListGUI\parseImage(), ilTimingsPersonalTableGUI\parseTitle(), ilTimingsManageTableGUI\parseTitle(), ilContainerGUI\performPasteIntoMultipleObjectsObject(), ilObjQuestionPoolGUI\questionsObject(), ilObjectGUI\redirectAfterCreation(), ilExerciseManagementGUI\redirectFeedbackMailObject(), ilObjCourseGUI\redirectLocToTestConfirmedObject(), ilObjCourseGUI\redirectLocToTestObject(), ilLearningHistoryTimelineItem\render(), ilContainerContentGUI\renderCard(), ilCalendarSelectionBlockGUI\renderItem(), ilPortfolioPageGUI\renderMyCourses(), ilExAssTypeWikiTeamGUI\renderOverviewContent(), ilNoteGUI\renderTargets(), ilExcMailTemplateSubmitReminderContext\resolveSpecificPlaceholder(), ilExcMailTemplateGradeReminderContext\resolveSpecificPlaceholder(), ilExcMailTemplatePeerReminderContext\resolveSpecificPlaceholder(), ilObjUserGUI\roleassignmentObject(), ilObjExercise\sendAssignment(), ilObjSurvey\sendCodes(), ilLPTableBaseGUI\sendMail(), ilMembershipCronMinMembers\sendMessage(), ilBadgeHandler\sendNotification(), ilWikiUtil\sendNotification(), ilNote\sendNotifications(), ilObjSurveyGUI\sendUserResultsMail(), ilObjItemGroupGUI\setTabs(), ilLMPresentationGUI\showPreconditionsOfPage(), ilCourseContentGUI\showStartObjects(), ilObjPollGUI\subscribe(), assQuestionGUI\sync(), ilObjPortfolioGUI\toRepository(), ilObjPollGUI\unsubscribe(), and ilObjPollGUI\vote().

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  }
global $DIC
Definition: saml.php:7
$a_type
Definition: workflow.php:92
+ 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.

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.

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

Referenced by ilObjFileAccess\_getPermanentDownloadLink(), ilAppointmentPresentationGUI\addContainerInfo(), ilTemplate\addILIASFooter(), ilLegacyKioskModeView\buildControls(), ilAppointmentPresentationGUI\buildDirectLinkForAppointment(), ilRepositoryExplorer\buildLinkTarget(), ilObjSurvey\checkReminder(), ilContactUserActionProvider\collectActionsForTargetUser(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilAppointmentPresentationBookingPoolGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\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(), ilObjLinkResourceSubItemListGUI\getHTML(), ilCalendarAppointmentPanelGUI\getHTML(), ilPermanentLinkGUI\getHTML(), ilPDSelectedItemsBlockSelectedItemsViewGUI\getIntroductionHtml(), ilDclIliasReferenceRecordRepresentation\getLinkHTML(), ilRepositoryExplorerGUI\getNodeHref(), ilPortfolioPageGUI\getPagePermaLink(), ilUserUtil\getStartingPointAsUrl(), ilRepositoryGlobalScreenProvider\getStaticSubItems(), ilObjLinkResourceGUI\handleSubItemLinks(), ilSurveyParticipantsGUI\mailRatersActionObject(), ilObjPortfolioBaseGUI\preview(), ilObjPortfolioGUI\printView(), ilObjBlogGUI\renderFullScreen(), ilObjBlogGUI\renderList(), ilRegistrationMailNotification\send(), ilBuddySystemNotification\send(), ilSkillNotifications\sendMail(), ilMembershipCronNotifications\sendMail(), ilECSObjectSettings\sendNewContentNotification(), ilRemoteObjectBase\sendNewContentNotification(), ilNote\sendNotifications(), ilObjSurvey\sendTutorNotification(), ilCalendarAppointmentGUI\showInfoScreen(), and ilContactGUI\submitInvitation().

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  }
global $DIC
Definition: saml.php:7
static _getInstance()
Get instance.
$a_type
Definition: workflow.php:92
+ 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: