ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilAdvancedMDFieldDefinitionExternalLink.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
26 {
27  public function getType(): int
28  {
29  return self::TYPE_EXTERNAL_LINK;
30  }
31 
32  protected function initADTDefinition(): ilADTDefinition
33  {
34  return ilADTFactory::getInstance()->getDefinitionInstanceByType("ExternalLink");
35  }
36 
37  public function getValueForXML(ilADT $element): string
38  {
39  return $element->getTitle() . '#' . $element->getUrl();
40  }
41 
42  public function importValueFromXML(string $a_cdata): void
43  {
44  $parts = explode("#", $a_cdata);
45  if (count($parts) == 2) {
46  $adt = $this->getADT();
47  $adt->setTitle($parts[0]);
48  $adt->setUrl($parts[1]);
49  }
50  }
51 }
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61
ADT base class.
Definition: class.ilADT.php:25
ADT definition base class.