ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
trait.ilObjFileTransformation.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Refinery\Transformation
;
22
use
ILIAS\Refinery\Factory
;
23
27
trait
ilObjFileTransformation
28
{
29
public
function
getEmptyStringToNullTransformation():
Transformation
30
{
31
return
$this->getRefinery()->custom()->transformation(
static
fn($text) => (empty($text)) ?
null
: $text);
32
}
33
34
abstract
protected
function
getRefinery():
Factory
;
35
}
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:36
ILIAS\Refinery\Factory
Definition:
Factory.php:26
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:35
ilObjFileTransformation
trait ilObjFileTransformation
Definition:
trait.ilObjFileTransformation.php:28
components
ILIAS
File
classes
trait.ilObjFileTransformation.php
Generated on Sat Oct 18 2025 23:03:02 for ILIAS by
1.9.4 (using
Doxyfile
)