ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilADTExternalLinkPresentationBridge.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11
class
ilADTExternalLinkPresentationBridge
extends
ilADTPresentationBridge
12
{
13
19
protected
function
isValidADT
(
ilADT
$a_adt)
20
{
21
return
$a_adt instanceof
ilADTExternalLink
;
22
}
23
28
public
function
getHTML
()
29
{
30
if
($this->
getADT
()->isNull()) {
31
return
;
32
}
33
if
(!strlen($this->
getADT
()->getTitle())) {
34
$presentation_value = $this->
getADT
()->getUrl();
35
$presentation_clickable =
ilUtil::makeClickable
($presentation_value);
36
return
$this->
decorate
($presentation_clickable);
37
}
38
39
return
$this->
decorate
(
40
'<a target="_blank" href="'
. $this->
getADT
()->getUrl() .
'">'
. $this->
getADT
()->getTitle() .
'</a>'
41
);
42
}
43
48
public
function
getSortable
()
49
{
50
if
(!$this->
getADT
()->isNull()) {
51
return
$this->
getADT
()->getUrl();
52
}
53
}
54
}
ilADTExternalLinkPresentationBridge\isValidADT
isValidADT(ilADT $a_adt)
Is valid type.
Definition:
class.ilADTExternalLinkPresentationBridge.php:19
ilADTExternalLinkPresentationBridge\getHTML
getHTML()
Get html.
Definition:
class.ilADTExternalLinkPresentationBridge.php:28
ilADTPresentationBridge\decorate
decorate($a_value)
Decorate value.
Definition:
class.ilADTPresentationBridge.php:107
ilADTPresentationBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTPresentationBridge.php:62
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTExternalLinkPresentationBridge\getSortable
getSortable()
Get soratable.
Definition:
class.ilADTExternalLinkPresentationBridge.php:48
ilUtil\makeClickable
static makeClickable($a_text, $detectGotoLinks=false)
makeClickable In Texten enthaltene URLs und Mail-Adressen klickbar machen
Definition:
class.ilUtil.php:747
ilADTExternalLinkPresentationBridge
external link presentation bridge
Definition:
class.ilADTExternalLinkPresentationBridge.php:11
ilADTPresentationBridge
ADT presentation bridge base class.
Definition:
class.ilADTPresentationBridge.php:11
php
ilADTExternalLink
Definition:
class.ilADTExternalLink.php:3
Services
ADT
classes
Types
ExternalLink
class.ilADTExternalLinkPresentationBridge.php
Generated on Thu Jan 16 2025 19:02:16 for ILIAS by
1.8.13 (using
Doxyfile
)