ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
Json.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Refinery\Encode\Transformation
;
22
23
use
ILIAS\Refinery\Transformation
;
24
use
ILIAS\Refinery\DeriveInvokeFromTransform
;
25
use
ILIAS\Refinery\DeriveApplyToFromTransform
;
26
34
class
Json
implements
Transformation
35
{
36
use
DeriveInvokeFromTransform
;
37
use
DeriveApplyToFromTransform
;
38
39
public
function
transform
($from)
40
{
41
return
json_encode($from, JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_THROW_ON_ERROR);
42
}
43
}
ILIAS\Refinery\Encode\Transformation
Definition:
HTMLAttributeValue.php:21
ILIAS\Refinery\DeriveInvokeFromTransform
trait DeriveInvokeFromTransform
Definition:
DeriveInvokeFromTransform.php:24
ILIAS\Refinery\DeriveApplyToFromTransform
trait DeriveApplyToFromTransform
Definition:
DeriveApplyToFromTransform.php:29
Transformation
ILIAS\Refinery\Encode\Transformation\Json
This class expects a valid UTF-8 string.
Definition:
Json.php:34
ILIAS\Refinery\Encode\Transformation\Json\transform
transform($from)
Perform the transformation.
Definition:
Json.php:39
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:34
components
ILIAS
Refinery
src
Encode
Transformation
Json.php
Generated on Wed Sep 3 2025 23:03:37 for ILIAS by
1.8.13 (using
Doxyfile
)