ILIAS
Release_3_10_x_branch Revision 61812
|
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 34 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 42 of file class.ilInternalLink.php.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), SurveyQuestion\delete(), assQuestion\deleteSuggestedSolutions(), ilPageObject\saveInternalLinks(), SurveyQuestion\saveToDb(), assQuestion\saveToDb(), SurveyQuestion\syncWithOriginal(), and assQuestion\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 58 of file class.ilInternalLink.php.
Referenced by 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 220 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 256 of file class.ilInternalLink.php.
Referenced by ilPageObject\_handleImportRepositoryLinks(), ilPageObject\resolveIntLinks(), 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 292 of file class.ilInternalLink.php.
Referenced by ilObjMediaObject\_exists(), ilGlossaryTerm\_exists(), _exists(), ilLMObject\_exists(), ilPageObject\_handleImportRepositoryLinks(), ilObjMediaObject\getLinkedMediaObjects(), ilPageObject\moveIntLinks(), 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 303 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 155 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 99 of file class.ilInternalLink.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilPageObject\_handleImportRepositoryLinks(), ilWikiPage\getLinksToPage(), ilWikiPage\getOrphanedPages(), 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 126 of file class.ilInternalLink.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilObjContentObject\exportHTMLPages(), 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 274 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 77 of file class.ilInternalLink.php.
Referenced by SurveyQuestion\_resolveIntLinks(), assQuestion\_resolveIntLinks(), ilWikiPage\saveInternalLinks(), ilPageObject\saveInternalLinks(), SurveyQuestion\saveToDb(), assQuestion\saveToDb(), SurveyQuestion\syncWithOriginal(), and assQuestion\syncWithOriginal().