ILIAS  release_8 Revision v8.24
ilWebLinkItemInternal Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilWebLinkItemInternal:
+ Collaboration diagram for ilWebLinkItemInternal:

Public Member Functions

 isInternal ()
 
 getResolvedLink (bool $with_parameters=true)
 
- Public Member Functions inherited from ilWebLinkItem
 __construct (int $webr_id, int $link_id, string $title, ?string $description, string $target, bool $active, DateTimeImmutable $create_date, DateTimeImmutable $last_update, array $parameters)
 
 getResolvedLink (bool $with_parameters=true)
 
 isInternal ()
 
 toXML (ilXmlWriter $writer, int $position)
 
 getWebrId ()
 
 getLinkId ()
 
 getCreateDate ()
 
 getLastUpdate ()
 
 getParameters ()
 
- Public Member Functions inherited from ilWebLinkBaseItem
 __construct (string $title, ?string $description, string $target, bool $active, array $parameters)
 
 isInternal ()
 
 getTitle ()
 
 getDescription ()
 
 getTarget ()
 
 isActive ()
 
 getParameters ()
 

Additional Inherited Members

- Protected Attributes inherited from ilWebLinkItem
int $webr_id
 
int $link_id
 
DateTimeImmutable $create_date
 
DateTimeImmutable $last_update
 
array $parameters
 
- Protected Attributes inherited from ilWebLinkBaseItem
string $title
 
string $target
 
bool $active
 
array $parameters
 
string $description
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Immutable class for internal Web Link items

Author
Tim Schmitz schmi.nosp@m.tz@l.nosp@m.eifos.nosp@m..de

Definition at line 25 of file class.ilWebLinkItemInternal.php.

Member Function Documentation

◆ getResolvedLink()

ilWebLinkItemInternal::getResolvedLink ( bool  $with_parameters = true)

Reimplemented from ilWebLinkItem.

Definition at line 32 of file class.ilWebLinkItemInternal.php.

32 : string
33 {
34 $parts = explode("|", $this->getTarget());
35 $type = (string) ($parts[0] ?? '');
36 $ref_id = (int) ($parts[1] ?? 0);
37
38 switch ($type) {
39 case 'wpage':
41 0,
42 'wiki',
43 true,
44 '&target=wiki_wpage_' . $ref_id
45 );
46 break;
47
48 case 'term':
49 // #16894
51 0,
52 "git",
53 true,
54 "&target=git_" . $ref_id
55 );
56 break;
57
58 case 'page':
59 $type = "pg";
61 break;
62
63 default:
65 }
66
67 if (!$with_parameters) {
68 return $link;
69 }
70
71 foreach ($this->getParameters() as $parameter) {
72 $link = $parameter->appendToLink($link);
73 }
74
75 return $link;
76 }
$ref_id
Definition: ltiauth.php:67
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:64
$type

References $parts, $ref_id, $type, ilLink\_getStaticLink(), ilWebLinkItem\getParameters(), ilWebLinkBaseItem\getTarget(), and ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ isInternal()

ilWebLinkItemInternal::isInternal ( )

Reimplemented from ilWebLinkItem.

Definition at line 27 of file class.ilWebLinkItemInternal.php.

27 : bool
28 {
29 return true;
30 }

The documentation for this class was generated from the following file: