|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class ilInternalLink. More...
Collaboration diagram for ilInternalLink:Public Member Functions | |
| _deleteAllLinksOfSource ($a_source_type, $a_source_id, $a_lang="-") | |
| Delete all links of a given source. More... | |
| _deleteAllLinksToTarget ($a_target_type, $a_target_id, $a_target_inst=0) | |
| Delete all links to a given target. More... | |
| _saveLink ($a_source_type, $a_source_id, $a_target_type, $a_target_id, $a_target_inst=0, $a_source_lang="-") | |
| save internal link information More... | |
| _getSourcesOfTarget ($a_target_type, $a_target_id, $a_target_inst) | |
| get all sources of a link target More... | |
| _getTargetsOfSource ($a_source_type, $a_source_id, $a_source_lang="-") | |
| Get all targets of a source object (e.g., a page) More... | |
| _getIdForImportId ($a_type, $a_target) | |
| Get current id for an import id. More... | |
| _exists ($a_type, $a_target) | |
| Check if internal link refers to a valid target. More... | |
| _extractInstOfTarget ($a_target) | |
| Extract installation id out of target. More... | |
| _removeInstFromTarget ($a_target) | |
| Removes installation id from target string. More... | |
| _extractObjIdOfTarget ($a_target) | |
| Extract object id out of target. More... | |
| _extractTypeOfTarget ($a_target) | |
| Extract type out of target. More... | |
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.
References $ilDB.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), SurveyQuestion\delete(), ilPageObject\deleteInternalLinks(), assQuestion\deleteSuggestedSolutions(), SurveyQuestion\saveMaterial(), and SurveyQuestion\syncWithOriginal().
Here is the caller graph for this function:| 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.
References $ilDB.
Referenced by ilPortfolioPage\delete(), and ilWikiPage\delete().
Here is the caller graph for this function:| 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 255 of file class.ilInternalLink.php.
References $ref_id, ilGlossaryTerm\_exists(), ilLMObject\_exists(), ilObjMediaObject\_exists(), ilPageObject\_exists(), and _extractObjIdOfTarget().
Referenced by ilPageObject\resolveIntLinks().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 296 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().
Here is the caller graph for this function:| 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 332 of file class.ilInternalLink.php.
Referenced by ilGlossaryTerm\_exists(), ilLMObject\_exists(), ilSCORM2004Node\_exists(), ilObjMediaObject\_exists(), _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().
Here is the caller graph for this function:| ilInternalLink::_extractTypeOfTarget | ( | $a_target | ) |
Extract type out of target.
| string | $a_target | import target id (e.g. "il_2_pg_22") |
Definition at line 343 of file class.ilInternalLink.php.
Referenced by ilLMObject\updateInternalLinks().
Here is the caller graph for this function:| 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 157 of file class.ilInternalLink.php.
References _extractInstOfTarget(), ilObject\_getAllReferences(), ilGlossaryTerm\_getIdForImportId(), ilLMObject\_getIdForImportId(), and ilObject\_getIdForImportId().
Referenced by SurveyQuestion\_resolveInternalLink(), assQuestion\_resolveInternalLink(), ilMapArea\_resolveIntLinks(), and ilPageObject\resolveIntLinks().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 93 of file class.ilInternalLink.php.
References $ilDB.
Referenced by ilPageObject\_handleImportRepositoryLinks(), ilObjMediaObjectAccess\checkAccessGlossaryTerm(), ilWikiPage\getLinksToPage(), ilWikiPage\getOrphanedPages(), ilGlossaryTerm\getUsages(), ilGlossaryPresentationGUI\listDefinitions(), ilContObjParser\processPagesToParse(), ilWikiPage\rename(), and ilLMObject\updateInternalLinks().
Here is the caller graph for this function:| 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 121 of file class.ilInternalLink.php.
References $ilDB.
Referenced by ilObjContentObject\exportHTMLPages(), ilSCORM2004Asset\getGlossaryTermIds(), ilPageObjectGUI\showPage(), and ilLMPresentationGUI\showPrintView().
Here is the caller graph for this function:| 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 314 of file class.ilInternalLink.php.
Referenced by ilPageObject\resolveIntLinks().
Here is the caller graph for this function:| 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.
References $ilDB.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), ilWikiPage\saveInternalLinks(), ilPageObject\saveInternalLinks(), SurveyQuestion\saveMaterial(), and SurveyQuestion\syncWithOriginal().
Here is the caller graph for this function: