ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
trait.ilObjFileTransformation.php
Go to the documentation of this file.
1 <?php
2 
18 declare(strict_types=1);
19 
22 
27 {
28  public function getEmptyStringToNullTransformation(): Transformation
29  {
30  return $this->getRefinery()->custom()->transformation(static function ($text) {
31  return (empty($text)) ? null : $text;
32  });
33  }
34 
35  abstract protected function getRefinery(): Factory;
36 }
$text
Definition: xapiexit.php:21
A transformation is a function from one datatype to another.