ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
export-plural-rules.php File Reference

Go to the source code of this file.

Data Structures

class  Enviro
 Helper class to handle command line options. More...
 

Variables

 try
 

Variable Documentation

◆ try

try
Initial value:
{
if (isset(Enviro::$languages)) {
$languages = array();
foreach (Enviro::$languages as $languageId) {
$language = Language::getById($languageId);
if (!isset($language)) {
throw new Exception("Unable to find the language with id '$languageId'");
}
$languages[] = $language;
}
} else {
$languages = Language::getAll();
}
$languages = Enviro::reduce($languages);
}
echo call_user_func(array(Exporter::getExporterClassName(Enviro::$outputFormat), 'toFile'), $languages, Enviro::$outputFilename, array('us-ascii' => Enviro::$outputUSAscii));
} else {
echo call_user_func(array(Exporter::getExporterClassName(Enviro::$outputFormat), 'toString'), $languages, array('us-ascii' => Enviro::$outputUSAscii));
}
} catch (Exception $x) {
Enviro::echoErr($x->getMessage()."\n");
Enviro::echoErr("Trace:\n");
Enviro::echoErr($x->getTraceAsString()."\n");
die(4);
}
die(0)
$x
Definition: example_009.php:98
static echoErr($str)
Print a string to stderr.
static reduce($languages)
Reduce a language list to the minimum common denominator.
static $outputFormat
static $languages
Create styles array
The data for the language used.
static $outputUSAscii
static $outputFilename

Definition at line 18 of file export-plural-rules.php.