ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ 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
$text
$text
Definition:
xapiexit.php:21
ILIAS\Refinery\Factory
Definition:
Factory.php:25
ilObjFileTransformation
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
components
ILIAS
File
classes
trait.ilObjFileTransformation.php
Generated on Wed Sep 10 2025 15:15:36 for ILIAS by
1.8.13 (using
Doxyfile
)