ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Gettext\Languages\Exporter\Prettyjson Class Reference
+ Inheritance diagram for Gettext\Languages\Exporter\Prettyjson:
+ Collaboration diagram for Gettext\Languages\Exporter\Prettyjson:

Static Public Member Functions

static getDescription ()
 
- Static Public Member Functions inherited from Gettext\Languages\Exporter\Json
static getDescription ()
 
- Static Public Member Functions inherited from Gettext\Languages\Exporter\Exporter
static getExporters ($onlyForPublicUse=false)
 Return the list of all the available exporters. More...
 
static getExporterDescription ($exporterHandle)
 Return the description of a specific exporter. More...
 
static getExporterClassName ($exporterHandle)
 Returns the fully qualified class name of a exporter given its handle. More...
 
static toString ($languages, $options=null)
 Convert a list of Language instances to string. More...
 
static toFile ($languages, $filename, $options=null)
 Save the Language instances to a file. More...
 
static isForPublicUse ()
 Is this exporter for public use? More...
 
static getDescription ()
 Return a short description of the exporter. More...
 

Static Protected Member Functions

static getEncodeOptions ()
 
- Static Protected Member Functions inherited from Gettext\Languages\Exporter\Json
static getEncodeOptions ()
 Return the options for json_encode. More...
 
static toStringDo ($languages)
 
- Static Protected Member Functions inherited from Gettext\Languages\Exporter\Exporter
static toStringDo ($languages)
 Convert a list of Language instances to string. More...
 

Detailed Description

Definition at line 6 of file Prettyjson.php.

Member Function Documentation

◆ getDescription()

static Gettext\Languages\Exporter\Prettyjson::getDescription ( )
static
See also
Exporter::getDescription

Definition at line 21 of file Prettyjson.php.

22  {
23  return 'Build an uncompressed JSON-encoded file (PHP 5.4 or later is needed)';
24  }

◆ getEncodeOptions()

static Gettext\Languages\Exporter\Prettyjson::getEncodeOptions ( )
staticprotected
See also
Json::getEncodeOptions

Definition at line 11 of file Prettyjson.php.

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  }

The documentation for this class was generated from the following file: