ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
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'))