19declare(strict_types=1);
58 global
$DIC, $ilPluginAdmin;
61 $context->ctrl()->setTargetScript(
'ilias.php');
67 if (is_object($ilPluginAdmin)) {
69 foreach (
$DIC[
"component.factory"]->getActivePluginsInSlot(
"uihk") as $ui_plugin) {
70 $gui_class = $ui_plugin->getUIClassInstance();
71 $gui_class->gotoHook();
75 $r_pos = strpos((
string) $requested_target,
"_");
76 $rest = substr((
string) $requested_target, $r_pos + 1);
77 $target_arr = explode(
"_", (
string) $requested_target);
78 $target_type = $target_arr[0];
79 $target_id = $target_arr[1] ??
'';
80 $additional = $target_arr[2] ??
'';
83 if ($target_type ===
"impr") {
84 $DIC->ctrl()->redirectToURL(
'ilias.php?baseClass=ilImprintGUI');
89 if (php_sapi_name() !==
'cli' && !\ilStartUpGUI::_checkGoto(
94 $url =
"login.php?target="
95 . $orig_target .
"&cmd=force_login&lang="
96 .
$DIC->user()->getCurrentLanguage();
97 if (
$DIC->http()->wrapper()->query()->has(
'soap_pw')) {
100 'soap_pw=' .
$DIC->http()->wrapper()->query()->retrieve(
102 $DIC->refinery()->kindlyTo()->string()
106 if (
$DIC->http()->wrapper()->query()->has(
'ext_uid')) {
109 'ext_uid=' .
$DIC->http()->wrapper()->query()->retrieve(
111 $DIC->refinery()->kindlyTo()->string()
118 $tarr = explode(
"_", (
string) $requested_target);
119 if ($tarr[0] !==
"pg" && $tarr[0] !==
"st" && isset($tarr[1]) && is_numeric($tarr[1]) && $tarr[1] > 0) {
120 $DIC->ui()->mainTemplate()->setOnScreenMessage(
123 $DIC->language()->txt(
"msg_no_perm_read_item"),
130 $DIC->ui()->mainTemplate()->setOnScreenMessage(
132 $DIC->language()->txt(
'permission_denied'),
147 switch ($target_type) {
160 $target_ref_id = $target_arr[2] ?? 0;
181 $target_thread = $target_arr[2] ?? 0;
182 $target_posting = $target_arr[3] ?? 0;
188 \ilObjExerciseGUI::_goto($target_id, $rest);
198 \ilObjQuestionPoolGUI::_goto($target_id);
223 \ilCertificate::_goto($target_id);
230 global $objDefinition;
231 if (!$objDefinition->isPlugin($target_type)) {
232 $class_name =
"ilObj" . $objDefinition->getClassName($target_type) .
"GUI";
233 if (class_exists($class_name)) {
234 call_user_func([$class_name,
"_goto"], $rest);
237 $class_name =
"ilObj" . $objDefinition->getClassName($target_type) .
"GUI";
238 $location = $objDefinition->getLocation($target_type);
239 if (is_file(
$location .
"/class." . $class_name .
".php")) {
240 call_user_func([$class_name,
"_goto"], [$rest, $class_name]);
246 return $response_factory->
cannot();
canHandle(Request $request)
handle(Request $request, Context $context, Factory $response_factory)
getAdditionalParameters()
static _goto(string $a_target, int $a_ref_id=0)
static _goto(string $a_target)
redirect script
static _goto(string $a_target)
static _goto($a_target, string $a_add="")
static _goto(string $a_target)
static _goto($a_target, $a_thread=0, $a_posting=0)
static _goto(string $a_target)
static _goto(string $a_target, string $a_add="")
static _goto(string $a_target, $a_additional=null)
static _goto(string $a_target)
goto target course
static _goto($target)
Redirect script to call a test with the test reference id.
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
static _goto(string $a_target, int $a_target_ref_id=0)
static getStartingPointAsUrl()
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)