ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilAdvancedMDFieldDefinitionExternalLink.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
10
class
ilAdvancedMDFieldDefinitionExternalLink
extends
ilAdvancedMDFieldDefinition
11
{
16
public
function
getType
()
17
{
18
return
self::TYPE_EXTERNAL_LINK;
19
}
20
21
26
protected
function
initADTDefinition
()
27
{
28
return
ilADTFactory::getInstance
()->getDefinitionInstanceByType(
"ExternalLink"
);
29
}
30
35
public
function
getValueForXML
(\
ilADT
$element)
36
{
37
return
$element->getTitle() .
'#'
. $element->getUrl();
38
}
39
44
public
function
importValueFromXML
($a_cdata)
45
{
46
$parts = explode(
"#"
, $a_cdata);
47
if
(count($parts) == 2) {
48
$adt
= $this->
getADT
();
49
$adt
->setTitle($parts[0]);
50
$adt
->setUrl($parts[1]);
51
}
52
}
53
}
ilAdvancedMDFieldDefinition\$adt
$adt
Definition:
class.ilAdvancedMDFieldDefinition.php:25
ilAdvancedMDFieldDefinitionExternalLink\getType
getType()
Get type.
Definition:
class.ilAdvancedMDFieldDefinitionExternalLink.php:16
ilAdvancedMDFieldDefinition
AMD field abstract base class.
Definition:
class.ilAdvancedMDFieldDefinition.php:14
ilAdvancedMDFieldDefinition\getADT
getADT()
Get ADT instance.
Definition:
class.ilAdvancedMDFieldDefinition.php:351
ilADTFactory\getInstance
static getInstance()
Get singleton.
Definition:
class.ilADTFactory.php:24
ilAdvancedMDFieldDefinitionExternalLink\importValueFromXML
importValueFromXML($a_cdata)
Import value from xml.
Definition:
class.ilAdvancedMDFieldDefinitionExternalLink.php:44
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilAdvancedMDFieldDefinitionExternalLink\initADTDefinition
initADTDefinition()
Init ADT definition.
Definition:
class.ilAdvancedMDFieldDefinitionExternalLink.php:26
php
ilAdvancedMDFieldDefinitionExternalLink
AMD field type external link.
Definition:
class.ilAdvancedMDFieldDefinitionExternalLink.php:10
ilAdvancedMDFieldDefinitionExternalLink\getValueForXML
getValueForXML(\ilADT $element)
Get value for XML.
Definition:
class.ilAdvancedMDFieldDefinitionExternalLink.php:35
Services
AdvancedMetaData
classes
Types
class.ilAdvancedMDFieldDefinitionExternalLink.php
Generated on Thu Jan 16 2025 19:02:16 for ILIAS by
1.8.13 (using
Doxyfile
)