ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Factory.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 2017 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
/* Copyright (c) 2017 Stefan Hecken <stefan.hecken@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\Transformation
;
6
11
class
Factory
12
{
21
public
function
addLabels
(array $labels)
22
{
23
return
new
Transformations\AddLabels
($labels);
24
}
25
34
public
function
splitString
(
$delimiter
)
35
{
36
return
new
Transformations\SplitString
(
$delimiter
);
37
}
38
45
public
function
custom
(callable
$f
)
46
{
47
return
new
Transformations\Custom
($f);
48
}
49
56
public
function
toData
(
$type
)
57
{
58
return
new
Transformations\Data
(
$type
);
59
}
60
}
ILIAS\Transformation\Transformations\Custom
Transform values according to custom configuration.
Definition:
Custom.php:11
$delimiter
$delimiter
Definition:
showstats.php:16
$type
$type
Definition:
proxy_ylocal.php:10
ILIAS\Transformation\Factory\addLabels
addLabels(array $labels)
Add labels to an array.
Definition:
Factory.php:21
ILIAS\Transformation
Definition:
Factory.php:5
$f
$f
Definition:
fetch_windows_zones.php:31
ILIAS\Transformation\Transformations\Data
Convert a primitive to a data type.
Definition:
Data.php:12
ILIAS\Transformation\Factory
Factory for basic transformations.
Definition:
Factory.php:11
ILIAS\Transformation\Transformations\AddLabels
Adds to any array keys for each value.
Definition:
AddLabels.php:11
ILIAS\Transformation\Factory\custom
custom(callable $f)
Create a custom transformation.
Definition:
Factory.php:45
ILIAS\Transformation\Factory\splitString
splitString($delimiter)
Split string at given delimiter.
Definition:
Factory.php:34
ILIAS\Transformation\Factory\toData
toData($type)
Transform primitive value to data-type.
Definition:
Factory.php:56
ILIAS\Transformation\Transformations\SplitString
Split a string by delimiter into array.
Definition:
SplitString.php:11
php
src
Transformation
Factory.php
Generated on Thu Jan 30 2025 19:02:10 for ILIAS by
1.8.13 (using
Doxyfile
)