ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
03-dictionary.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7
function
toDictionary
()
8
{
9
global
$DIC
;
10
11
$refinery = $DIC->refinery();
12
13
$transformation = $refinery->to()->dictOf(
new
\
ILIAS
\
Refinery
\To\Transformation\IntegerTransformation());
14
15
$result
= $transformation->transform(array(
'sum'
=> 5,
'user_id'
=> 1,
'size'
=> 4));
16
17
return
assert(array(
'sum'
=> 5,
'user_id'
=> 1,
'size'
=> 4) ===
$result
);
18
}
$result
$result
Definition:
CleanUpTest.php:463
ILIAS
Class ChatMainBarProvider .
toDictionary
toDictionary()
Definition:
03-dictionary.php:7
Factory
$DIC
global $DIC
Definition:
goto.php:24
src
Refinery
examples
To
03-dictionary.php
Generated on Wed Sep 3 2025 21:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)