ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Gettext\Languages\Exporter\Docs Class Reference
+ Inheritance diagram for Gettext\Languages\Exporter\Docs:
+ Collaboration diagram for Gettext\Languages\Exporter\Docs:

Static Public Member Functions

static isForPublicUse ()
 
static getDescription ()
 
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 toStringDo ($languages)
 
- Static Protected Member Functions inherited from Gettext\Languages\Exporter\Html
static toStringDo ($languages)
 
static h ($str)
 
static buildTable ($languages, $forDocs)
 
static toStringDo ($languages)
 Convert a list of Language instances to string. More...
 

Detailed Description

Definition at line 4 of file Docs.php.

Member Function Documentation

◆ getDescription()

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

Reimplemented from Gettext\Languages\Exporter\Html.

Definition at line 51 of file Docs.php.

52 {
53 return 'Build the page http://mlocati.github.io/cldr-to-gettext-plural-rules';
54 }

◆ isForPublicUse()

static Gettext\Languages\Exporter\Docs::isForPublicUse ( )
static
See also
Exporter::isForPublicUse

Reimplemented from Gettext\Languages\Exporter\Exporter.

Definition at line 44 of file Docs.php.

45 {
46 return false;
47 }

◆ toStringDo()

static Gettext\Languages\Exporter\Docs::toStringDo (   $languages)
staticprotected
See also
Exporter::toStringDo

Reimplemented from Gettext\Languages\Exporter\Html.

Definition at line 9 of file Docs.php.

10 {
11 $result = <<<EOT
12<!doctype html>
13<html lang="en">
14 <head>
15 <meta charset="utf-8">
16 <meta http-equiv="X-UA-Compatible" content="IE=edge">
17 <meta name="viewport" content="width=device-width, initial-scale=1">
18 <meta name="author" content="Michele Locati">
19 <title>gettext plural rules - built from CLDR</title>
20 <meta name="description" content="List of all language rules for gettext .po files automatically generated from the Unicode CLDR data" />
21 <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
22 <link rel="stylesheet" href="style.css">
23 </head>
24 <body>
25 <a href="https://github.com/mlocati/cldr-to-gettext-plural-rules" class="hidden-xs"><img style="position: fixed; top: 0; right: 0; border: 0; z-index: 2000" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
26 <div class="container-fluid">
27
28EOT;
29 $result .= static::buildTable($languages, true);
30 $result .= <<<EOT
31
32 </div>
33 <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
34 <script src="script.js"></script>
35 </body>
36</html>
37EOT;
38
39 return $result;
40 }
$result
html()
static http()
Fetches the global http state from ILIAS.

References $result, html(), and ILIAS\FileDelivery\http().

+ Here is the call graph for this function:

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