ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilInternalLink. More...
Public Member Functions | |
_deleteAllLinksOfSource ($a_source_type, $a_source_id, $a_lang="-") | |
Delete all links of a given source. | |
_deleteAllLinksToTarget ($a_target_type, $a_target_id, $a_target_inst=0) | |
Delete all links to a given target. | |
_saveLink ($a_source_type, $a_source_id, $a_target_type, $a_target_id, $a_target_inst=0, $a_source_lang="-") | |
save internal link information | |
_getSourcesOfTarget ($a_target_type, $a_target_id, $a_target_inst) | |
get all sources of a link target | |
_getTargetsOfSource ($a_source_type, $a_source_id, $a_source_lang="-") | |
Get all targets of a source object (e.g., a page) | |
_getIdForImportId ($a_type, $a_target) | |
Get current id for an import id. | |
_exists ($a_type, $a_target) | |
Check if internal link refers to a valid target. | |
_extractInstOfTarget ($a_target) | |
Extract installation id out of target. | |
_removeInstFromTarget ($a_target) | |
Removes installation id from target string. | |
_extractObjIdOfTarget ($a_target) | |
Extract object id out of target. | |
_extractTypeOfTarget ($a_target) | |
Extract type out of target. |
Class ilInternalLink.
Some methods to handle internal links
Definition at line 14 of file class.ilInternalLink.php.
ilInternalLink::_deleteAllLinksOfSource | ( | $a_source_type, | |
$a_source_id, | |||
$a_lang = "-" |
|||
) |
Delete all links of a given source.
string | $a_source_type | source type |
int | $a_source_if | source id |
int | $a_lang | source language |
Definition at line 23 of file class.ilInternalLink.php.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), SurveyQuestion\delete(), ilPageObject\deleteInternalLinks(), assQuestion\deleteSuggestedSolutions(), SurveyQuestion\saveMaterial(), and SurveyQuestion\syncWithOriginal().
ilInternalLink::_deleteAllLinksToTarget | ( | $a_target_type, | |
$a_target_id, | |||
$a_target_inst = 0 |
|||
) |
Delete all links to a given target.
string | $a_target_type | target type |
int | $a_target_id | target id |
int | $a_target_inst | target installation id |
Definition at line 47 of file class.ilInternalLink.php.
Referenced by ilPortfolioPage\delete(), and ilWikiPage\delete().
ilInternalLink::_exists | ( | $a_type, | |
$a_target | |||
) |
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 256 of file class.ilInternalLink.php.
References $ref_id, and _extractObjIdOfTarget().
Referenced by ilPageObject\resolveIntLinks().
ilInternalLink::_extractInstOfTarget | ( | $a_target | ) |
Extract installation id out of target.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 297 of file class.ilInternalLink.php.
Referenced by _getIdForImportId(), ilPageObject\_handleImportRepositoryLinks(), ilPCQuestion\afterPageUpdate(), ilPCQuestionGUI\edit(), ilQuestionExporter\exportQuestion(), ilPCQuestionGUI\feedback(), ilPageObject\getQuestionIds(), ilPageObject\newIIMCopies(), ilPageObject\newMobCopies(), ilPageObject\newQuestionCopies(), ilPageObject\resolveIntLinks(), ilPCQuestionGUI\setTabs(), and ilLMObject\updateInternalLinks().
ilInternalLink::_extractObjIdOfTarget | ( | $a_target | ) |
Extract object id out of target.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 333 of file class.ilInternalLink.php.
Referenced by ilObjMediaObject\_exists(), ilGlossaryTerm\_exists(), _exists(), ilSCORM2004Node\_exists(), ilLMObject\_exists(), ilPageObject\_handleImportRepositoryLinks(), ilPCQuestion\afterPageUpdate(), ilPCQuestionGUI\edit(), ilSCORM2004Asset\exportHTMLPageObjects(), ilQuestionExporter\exportQuestion(), ilPCQuestionGUI\feedback(), ilPageObject\getInitialOpenedContent(), ilObjMediaObject\getLinkedMediaObjects(), ilPageObject\getQuestionIds(), ilPageObject\moveIntLinks(), ilPageObject\newIIMCopies(), ilPageObject\newMobCopies(), ilPageObject\newQuestionCopies(), ilPCInteractiveImage\setNode(), ilPCQuestionGUI\setTabs(), and ilLMObject\updateInternalLinks().
ilInternalLink::_extractTypeOfTarget | ( | $a_target | ) |
Extract type out of target.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 344 of file class.ilInternalLink.php.
Referenced by ilLMObject\updateInternalLinks().
ilInternalLink::_getIdForImportId | ( | $a_type, | |
$a_target | |||
) |
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 161 of file class.ilInternalLink.php.
References _extractInstOfTarget(), and ilObject\_getAllReferences().
Referenced by SurveyQuestion\_resolveInternalLink(), assQuestion\_resolveInternalLink(), ilMapArea\_resolveIntLinks(), and ilPageObject\resolveIntLinks().
ilInternalLink::_getSourcesOfTarget | ( | $a_target_type, | |
$a_target_id, | |||
$a_target_inst | |||
) |
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 97 of file class.ilInternalLink.php.
Referenced by ilPageObject\_handleImportRepositoryLinks(), ilWebAccessChecker\checkAccessGlossaryTerm(), ilWikiPage\getLinksToPage(), ilWikiPage\getOrphanedPages(), ilGlossaryTerm\getUsages(), ilGlossaryPresentationGUI\listDefinitions(), ilContObjParser\processPagesToParse(), ilWikiPage\rename(), and ilLMObject\updateInternalLinks().
ilInternalLink::_getTargetsOfSource | ( | $a_source_type, | |
$a_source_id, | |||
$a_source_lang = "-" |
|||
) |
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 |
Definition at line 125 of file class.ilInternalLink.php.
Referenced by ilObjContentObject\exportHTMLPages(), ilSCORM2004Asset\getGlossaryTermIds(), ilPageObjectGUI\showPage(), and ilLMPresentationGUI\showPrintView().
ilInternalLink::_removeInstFromTarget | ( | $a_target | ) |
Removes installation id from target string.
string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 315 of file class.ilInternalLink.php.
Referenced by ilPageObject\resolveIntLinks().
ilInternalLink::_saveLink | ( | $a_source_type, | |
$a_source_id, | |||
$a_target_type, | |||
$a_target_id, | |||
$a_target_inst = 0 , |
|||
$a_source_lang = "-" |
|||
) |
save internal link information
string | $a_source_type | source type |
int | $a_source_if | source id |
string | $a_target_type | target type |
int | $a_target_id | target id |
int | $a_target_inst | target installation id |
Definition at line 66 of file class.ilInternalLink.php.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), ilWikiPage\saveInternalLinks(), ilPageObject\saveInternalLinks(), SurveyQuestion\saveMaterial(), and SurveyQuestion\syncWithOriginal().