4 define(
'IL_INTERNAL_LINK_SCRIPT',
'goto.php');
17 public static function _getLink($a_ref_id,
$a_type =
'', $a_params = array(), $append =
"")
21 $ilObjDataCache = $DIC[
"ilObjDataCache"];
24 $a_type = $ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($a_ref_id));
27 if (is_array($a_params) && count($a_params)) {
28 foreach ($a_params as
$name => $value) {
29 $param_string .= (
'&' .
$name .
'=' . $value);
38 return ILIAS_HTTP_PATH .
'/' .
IL_INTERNAL_LINK_SCRIPT .
'?target=' .
$a_type .
'_' . $a_ref_id . $append .
'&client_id=' . CLIENT_ID . $param_string;
56 $a_fallback_goto =
true,
61 $ilObjDataCache = $DIC[
"ilObjDataCache"];
64 $a_type = $ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($a_ref_id));
67 include_once(
'Services/PrivacySecurity/classes/class.ilRobotSettings.php');
69 if (!$robot_settings->robotSupportEnabled()) {
70 if ($a_fallback_goto) {
78 return ILIAS_HTTP_PATH .
'/goto_' . urlencode(CLIENT_ID) .
'_' .
$a_type .
'_' . $a_ref_id . urlencode($append) .
'.html';
const IL_INTERNAL_LINK_SCRIPT
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static _getInstance()
Get instance.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")