ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
}
ILIAS\Transformation\Transformations\Custom
Transform values according to custom configuration.
Definition:
Custom.php:11
$delimiter
$delimiter
Definition:
showstats.php:16
ILIAS\Transformation\Factory\addLabels
addLabels(array $labels)
Add labels to an array.
Definition:
Factory.php:21
ILIAS\Transformation
Definition:
Factory.php:5
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
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
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\Transformations\SplitString
Split a string by delimiter into array.
Definition:
SplitString.php:11
src
Transformation
Factory.php
Generated on Tue Jan 28 2025 19:01:45 for ILIAS by
1.8.13 (using
Doxyfile
)