ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | _deleteAllLinksOfSource (string $a_source_type, int $a_source_id, string $a_lang="-") |
Delete all links of a given source. More... | |
static | _deleteAllLinksToTarget (string $a_target_type, int $a_target_id, int $a_target_inst=0) |
Delete all links to a given target. More... | |
static | _saveLink (string $a_source_type, int $a_source_id, string $a_target_type, int $a_target_id, int $a_target_inst=0, string $a_source_lang="-") |
save internal link information More... | |
static | _getSourcesOfTarget (string $a_target_type, int $a_target_id, int $a_target_inst) |
get all sources of a link target More... | |
static | _getTargetsOfSource (string $a_source_type, int $a_source_id, string $a_source_lang="-") |
Get all targets of a source object (e.g., a page) More... | |
static | _getIdForImportId (string $a_type, string $a_target) |
Get current id for an import id. More... | |
static | _exists (string $a_type, string $a_target) |
Check if internal link refers to a valid target. More... | |
static | _extractInstOfTarget (string $a_target) |
Extract installation id out of target. More... | |
static | _removeInstFromTarget (string $a_target) |
Removes installation id from target string. More... | |
static | _extractObjIdOfTarget (string $a_target) |
Extract object id out of target. More... | |
static | _extractTypeOfTarget (string $a_target) |
Extract type out of target. More... | |
static | searchUsers (string $a_search_str) |
Search users. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilInternalLink Some methods to handle internal links
Definition at line 24 of file class.ilInternalLink.php.
|
static |
Delete all links of a given source.
Definition at line 29 of file class.ilInternalLink.php.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), SurveyQuestion\delete(), ilPageObject\deleteInternalLinks(), assQuestion\deleteSuggestedSolutions(), SurveyQuestion\saveMaterial(), SurveyQuestion\syncWithOriginal(), and assQuestion\updateSuggestedSolutions().
|
static |
Delete all links to a given target.
Definition at line 53 of file class.ilInternalLink.php.
Referenced by ilPortfolioPage\delete(), and ilWikiPage\delete().
|
static |
Check if internal link refers to a valid target.
string | $a_type | target type ("PageObject" | "StructureObject" | "GlossaryItem" | "MediaObject") |
string | $a_target | target id, e.g. "il__pg_244") |
Definition at line 265 of file class.ilInternalLink.php.
References $DIC, $ref_id, ilObjMediaObject\_exists(), ilGlossaryTerm\_exists(), ilPageObject\_exists(), and ilLMObject\_exists().
Referenced by ilPageObject\resolveIntLinks().
|
static |
Extract installation id out of target.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 302 of file class.ilInternalLink.php.
Referenced by ilPageObject\_handleImportRepositoryLinks(), ilPCQuestion\afterPageUpdate(), ilPCQuestionGUI\edit(), ilQuestionExporter\exportQuestion(), ilPCQuestionGUI\feedback(), ilPageObject\getQuestionIds(), ilPageObject\newIIMCopies(), ilPageObject\newMobCopies(), ilPageObject\newQuestionCopies(), ilPageObject\resolveIntLinks(), ilPCQuestionGUI\setTabs(), ilPortfolioPage\updateInternalLinks(), and ilLMObject\updateInternalLinks().
|
static |
Extract object id out of target.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 332 of file class.ilInternalLink.php.
Referenced by ilObjMediaObject\_exists(), ilGlossaryTerm\_exists(), ilLMObject\_exists(), ilPageObject\_handleImportRepositoryLinks(), ilPCQuestion\afterPageUpdate(), ilPCQuestionGUI\edit(), ilQuestionExporter\exportQuestion(), ilPCQuestionGUI\feedback(), ilPageObject\getInitialOpenedContent(), ilObjMediaObject\getLinkedMediaObjects(), ilPageObject\getQuestionIds(), exPageContentQuestions\getQuestionOfflinePresentations(), ilPageObject\moveIntLinks(), ilPageObject\newIIMCopies(), ilPageObject\newMobCopies(), ilPageObject\newQuestionCopies(), ilPortfolioPage\renameLinksOnTitleChange(), ilPCInteractiveImage\setNode(), ilPCQuestionGUI\setTabs(), ilPortfolioPage\updateInternalLinks(), and ilLMObject\updateInternalLinks().
|
static |
Extract type out of target.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 342 of file class.ilInternalLink.php.
Referenced by ilPortfolioPage\updateInternalLinks(), and ilLMObject\updateInternalLinks().
|
static |
Get current id for an import id.
string | $a_type | target type ("PageObject" | "StructureObject" | "GlossaryItem" | "MediaObject") |
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 174 of file class.ilInternalLink.php.
References $id, ilObject\_getAllReferences(), ilGlossaryTerm\_getIdForImportId(), ilLMObject\_getIdForImportId(), ilObject\_getIdForImportId(), and IL_INST_ID.
Referenced by SurveyQuestion\_resolveInternalLink(), assQuestion\_resolveInternalLink(), ilMapArea\_resolveIntLinks(), and ilPageObject\resolveIntLinks().
|
static |
get all sources of a link target
string | $a_target_type | target type |
int | $a_target_id | target id |
int | $a_target_inst | target installation id |
Definition at line 106 of file class.ilInternalLink.php.
Referenced by ilPageObject\_handleImportRepositoryLinks(), ilObjMediaObjectAccess\checkAccessGlossaryTerm(), ilWikiPage\getLinksToPage(), ilWikiPage\getOrphanedPages(), ilGlossaryTerm\getUsages(), ilGlossaryPresentationGUI\listDefinitions(), ilQuestionPageParser\processPagesToParse(), ilWikiPage\rename(), and ilLMObject\updateInternalLinks().
|
static |
Get all targets of a source object (e.g., a page)
string | $a_source_type | source type (e.g. "lm:pg" | "dbk:pg") |
int | $a_source_id | source id |
string | $a_source_lang | source language |
Definition at line 137 of file class.ilInternalLink.php.
Referenced by ilCOPageHTMLExport\collectPageElements(), ilPageObjectGUI\showPage(), ilLMPresentationGUI\showPrintView(), and ilObjWiki\updateInternalLinksOnCopy().
|
static |
Removes installation id from target string.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 317 of file class.ilInternalLink.php.
Referenced by ilPageObject\resolveIntLinks().
|
static |
save internal link information
Definition at line 73 of file class.ilInternalLink.php.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), ilWikiPage\saveInternalLinks(), ilPageObject\saveInternalLinks(), SurveyQuestion\saveMaterial(), SurveyQuestion\syncWithOriginal(), and assQuestion\updateSuggestedSolutions().
|
static |
Search users.
Definition at line 351 of file class.ilInternalLink.php.
References ilObjectSearchFactory\_getUserSearchInstance(), ilUserFilter\getInstance(), ilObjUser\getProfileStatusOfUsers(), ilQueryParser\QP_COMBINATION_AND, and ROOT_FOLDER_ID.
Referenced by ilInternalLinkGUI\getUserSearchResult().