ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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'");
}
}
} else {
$languages = Language::getAll();
}
}
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)
static $languages
static $outputUSAscii
static echoErr($str)
Print a string to stderr.
static reduce($languages)
Reduce a language list to the minimum common denominator.
static $outputFilename
static $outputFormat
$languages
Definition: cssgen2.php:34
$x
Definition: complexTest.php:9

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