ILIAS
trunk Revision v11.0_alpha-1851-ga8564da6fed
|
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.
References $DIC, $ilDB, and $q.
Referenced by SurveyQuestion\_resolveIntLinks(), ILIAS\TestQuestionPool\Questions\SuggestedSolution\SuggestedSolutionsDatabaseRepository\additionalOnDelete(), SurveyQuestion\delete(), ILIAS\Data\Link\LinkManager\deleteInternalLinks(), assQuestion\deleteSuggestedSolutions(), assQuestion\resolveSuggestedSolutionLinks(), and SurveyQuestion\syncWithOriginal().
|
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 264 of file class.ilInternalLink.php.
References $DIC, $ref_id, ilObjMediaObject\_exists(), ilGlossaryTerm\_exists(), ilPageObject\_exists(), and ilLMObject\_exists().
Referenced by ILIAS\Data\Link\LinkManager\resolveIntLinks().
|
static |
Extract installation id out of target.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 301 of file class.ilInternalLink.php.
References null.
Referenced by ilPCQuestion\afterPageUpdate(), ilPCQuestionGUI\edit(), ilQuestionExporter\exportQuestion(), ilPCQuestionGUI\feedback(), ilPCQuestion\getQuestionIds(), ilPCQuestion\handleCopiedContent(), ilPCInteractiveImage\handleCopiedContent(), ilPCMediaObject\handleCopiedContent(), ILIAS\Data\Link\LinkManager\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 331 of file class.ilInternalLink.php.
Referenced by ilObjMediaObject\_exists(), ilGlossaryTerm\_exists(), ilLMObject\_exists(), ilPCQuestion\afterPageUpdate(), ilPCQuestionGUI\edit(), ilQuestionExporter\exportQuestion(), ilPCQuestionGUI\feedback(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\getInitialOpenedContent(), ilObjMediaObject\getLinkedMediaObjects(), ilPCQuestion\getQuestionIds(), exPageContentQuestions\getQuestionOfflinePresentations(), ilPCQuestion\handleCopiedContent(), ilPCInteractiveImage\handleCopiedContent(), ilPCMediaObject\handleCopiedContent(), ILIAS\Data\Link\LinkManager\moveIntLinks(), ilPortfolioPage\renameLinksOnTitleChange(), ilPCInteractiveImage\setDomNode(), 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 341 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(), IL_INST_ID, and null.
Referenced by SurveyQuestion\_resolveInternalLink(), ilMapArea\_resolveIntLinks(), assQuestion\resolveInternalLink(), and ILIAS\Data\Link\LinkManager\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.
References $DIC, $ilDB, and $q.
Referenced by ilMobStakeholder\checkAccessGlossaryTerm(), ilObjMediaObjectAccess\checkAccessGlossaryTerm(), ILIAS\Wiki\Links\LinkManager\getLinksToPage(), ilWikiPage\getLinksToPage(), ILIAS\Wiki\Page\PageManager\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.
References $DIC, $ilDB, and $q.
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 316 of file class.ilInternalLink.php.
References null.
Referenced by ILIAS\Data\Link\LinkManager\resolveIntLinks().
|
static |
save internal link information
Definition at line 73 of file class.ilInternalLink.php.
Referenced by SurveyQuestion\_resolveIntLinks(), ILIAS\TestQuestionPool\Questions\SuggestedSolution\SuggestedSolutionsDatabaseRepository\additionalOnStore(), assQuestion\resolveSuggestedSolutionLinks(), ILIAS\Data\Link\LinkManager\saveInternalLinks(), ILIAS\Wiki\Links\LinkManager\saveInternalLinksForPage(), and SurveyQuestion\syncWithOriginal().
|
static |
Search users.
Definition at line 350 of file class.ilInternalLink.php.
References ilObjectSearchFactory\_getUserSearchInstance(), ilUserFilter\getInstance(), ilObjUser\getProfileStatusOfUsers(), ilQueryParser\QP_COMBINATION_AND, and ROOT_FOLDER_ID.
Referenced by ilInternalLinkGUI\getUserSearchResult().