ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
DataFetcher.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
26trait DataFetcher
27{
28 public function dataValue(
29 ElementInterface $element,
30 bool $ignore_marker
31 ): string {
32 if (
33 !$ignore_marker &&
34 ($element instanceof MarkableInterface) &&
35 $element->isMarked()
36 ) {
37 return $element->getMarker()->dataValue();
38 }
39 return $element->getData()->value();
40 }
41}
if(!file_exists('../ilias.ini.php'))