ILIAS
Release_4_1_x_branch Revision 61804
|
Class ilInternalLink. More...
Public Member Functions | |
_deleteAllLinksOfSource ($a_source_type, $a_source_id) | |
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) | |
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) | |
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 | |||
) |
delete all links of a given source
string | $a_source_type | source type |
int | $a_source_if | source id |
Definition at line 22 of file class.ilInternalLink.php.
References $ilDB.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), SurveyQuestion\delete(), assQuestion\deleteSuggestedSolutions(), ilPageObject\saveInternalLinks(), SurveyQuestion\saveMaterial(), SurveyQuestion\syncWithOriginal(), and assQuestion\updateSuggestedSolutions().
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 39 of file class.ilInternalLink.php.
References $ilDB.
Referenced by ilWikiPage\delete(), and ilExtPublicProfilePage\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 207 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 243 of file class.ilInternalLink.php.
Referenced by ilPageObject\_handleImportRepositoryLinks(), ilPCQuestionGUI\edit(), ilQuestionExporter\exportQuestion(), ilPCQuestionGUI\feedback(), ilPageObject\getQuestionIds(), ilPageObject\newQuestionCopies(), ilPageObject\resolveIntLinks(), ilPageObject\saveInternalLinks(), 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 279 of file class.ilInternalLink.php.
Referenced by ilObjMediaObject\_exists(), ilGlossaryTerm\_exists(), _exists(), ilSCORM2004Node\_exists(), ilLMObject\_exists(), ilPageObject\_handleImportRepositoryLinks(), ilPCQuestionGUI\edit(), ilSCORM2004Sco\exportHTMLPageObjects(), ilQuestionExporter\exportQuestion(), ilPCQuestionGUI\feedback(), ilObjMediaObject\getLinkedMediaObjects(), ilPageObject\getQuestionIds(), ilPageObject\moveIntLinks(), ilPageObject\newQuestionCopies(), ilPageObject\saveInternalLinks(), 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 290 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 142 of file class.ilInternalLink.php.
References 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 86 of file class.ilInternalLink.php.
References $ilDB.
Referenced by ilPageObject\_handleImportRepositoryLinks(), ilWebAccessChecker\checkAccessGlossaryTerm(), ilWikiPage\getLinksToPage(), ilWikiPage\getOrphanedPages(), ilGlossaryTerm\getUsages(), ilGlossaryPresentationGUI\listDefinitions(), ilContObjParser\processPagesToParse(), and ilLMObject\updateInternalLinks().
ilInternalLink::_getTargetsOfSource | ( | $a_source_type, | |
$a_source_id | |||
) |
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 113 of file class.ilInternalLink.php.
References $ilDB.
Referenced by ilObjContentObject\exportHTMLPages(), ilSCORM2004Sco\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 261 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 |
|||
) |
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 58 of file class.ilInternalLink.php.
References $ilDB.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), ilWikiPage\saveInternalLinks(), ilPageObject\saveInternalLinks(), SurveyQuestion\saveMaterial(), SurveyQuestion\syncWithOriginal(), and assQuestion\updateSuggestedSolutions().