ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Prettyjson.php
Go to the documentation of this file.
1
<?
php
2
namespace
Gettext\Languages\Exporter
;
3
4
use
Exception
;
5
6
class
Prettyjson
extends
Json
7
{
11
protected
static
function
getEncodeOptions
()
12
{
13
if
(!(defined(
'\JSON_PRETTY_PRINT'
) && defined(
'\JSON_UNESCAPED_SLASHES'
) && defined(
'\JSON_UNESCAPED_UNICODE'
))) {
14
throw
new
Exception
(
'PHP 5.4 or later is required to export uncompressed JSON'
);
15
}
16
return \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE;
17
}
21
public
static
function
getDescription
()
22
{
23
return
'Build an uncompressed JSON-encoded file (PHP 5.4 or later is needed)'
;
24
}
25
}
Gettext\Languages\Exporter\Json
Definition:
Json.php:4
Gettext\Languages\Exporter\Prettyjson\getEncodeOptions
static getEncodeOptions()
Definition:
Prettyjson.php:11
Gettext\Languages\Exporter\Prettyjson\getDescription
static getDescription()
Definition:
Prettyjson.php:21
Gettext\Languages\Exporter\Prettyjson
Definition:
Prettyjson.php:6
Gettext\Languages\Exporter
Definition:
Docs.php:2
php
Exception
libs
composer
vendor
gettext
languages
src
Exporter
Prettyjson.php
Generated on Thu Jan 30 2025 19:01:18 for ILIAS by
1.8.13 (using
Doxyfile
)