Definition at line 23 of file ExtLinkMapper.php.
◆ __construct()
ILIAS\Data\Link\ExtLinkMapper::__construct |
( |
protected \ilObjectDefinition |
$object_def, |
|
|
string |
$ilias_http_path, |
|
|
protected array |
$mapping, |
|
|
protected |
$client_id = "" |
|
) |
| |
◆ getNewHref()
ILIAS\Data\Link\ExtLinkMapper::getNewHref |
( |
int |
$ref_id | ) |
|
Definition at line 101 of file ExtLinkMapper.php.
References $ref_id.
104 $new_ref_id = ($this->mapping[
$ref_id] ?? 0);
105 if ($new_ref_id > 0) {
106 return \ilLink::_getLink($new_ref_id);
◆ getRefId()
ILIAS\Data\Link\ExtLinkMapper::getRefId |
( |
string |
$href | ) |
|
Definition at line 39 of file ExtLinkMapper.php.
References $parts, $ref_id, $url, and ILIAS\Repository\int().
41 $url = parse_url($href);
44 if ((
$url[
"host"] ??
"") !==
"" &&
$url[
"host"] !== $this->ilias_url[
"host"]) {
55 if (substr($href, strlen($href) - 5) ===
".html") {
59 substr(
$url[
"path"], 0, strlen(
$url[
"path"]) - 5)
62 if (array_shift(
$parts) !==
"goto") {
65 $par[
"client_id"] = array_shift(
$parts);
66 $par[
"target"] = implode(
"_",
$parts);
67 $t = explode(
"_", $par[
"target"]);
70 } elseif (is_int($p = strpos($href,
"/goto.php/"))) {
71 $parts = explode(
"/", substr($href, $p + 10));
74 } elseif (is_int($p = strpos($href,
"/go/"))) {
75 $parts = explode(
"/", substr($href, $p + 4));
80 foreach (explode(
"&", (
$url[
"query"] ??
"")) as $p) {
81 $p = explode(
"=", $p);
82 if (isset($p[0]) && isset($p[1])) {
89 if (
$ref_id > 0 && $type !==
"" && !$this->object_def->isRBACObject($type)) {
94 $target_client_id = $par[
"client_id"] ??
"";
95 if ($target_client_id !==
"" && $target_client_id !== $this->client_id) {
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
◆ $ilias_url
array ILIAS\Data\Link\ExtLinkMapper::$ilias_url |
|
protected |
The documentation for this class was generated from the following file: