Go to the source code of this file.
◆ toRecord()
- Author
- Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de
Definition at line 7 of file 05-record.php.
8{
10
11 $refinery =
$DIC->refinery();
12
13 $transformation = $refinery->to()->recordOf(
14 array(
15 'user_id' =>
new \
ILIAS\Refinery\To\Transformation\IntegerTransformation(),
16 'points' =>
new \
ILIAS\Refinery\To\Transformation\IntegerTransformation()
17 )
18 );
19
20 $result = $transformation->transform(array(
'user_id' => 5,
'points' => 1));
21
22 return assert(array(
'user_id' => 5,
'points' => 1) ===
$result);
23}
Class ChatMainBarProvider \MainMenu\Provider.
References $DIC, and $result.