ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
trait.ilObjFileTransformation.php
Go to the documentation of this file.
1
<?php
2
18
declare(strict_types=1);
19
20
use
ILIAS\Refinery\Transformation
;
21
use
ILIAS\Refinery\Factory
;
22
26
trait
ilObjFileTransformation
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
}
Transformation
Factory
ilObjFileTransformation
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
Modules
File
classes
trait.ilObjFileTransformation.php
Generated on Wed Sep 10 2025 14:10:51 for ILIAS by
1.8.13 (using
Doxyfile
)