Example #1
0
 private function __construct()
 {
     //get languages file
     //
     // SDL supported language codes
     // http://kb.sdl.com/kb/?ArticleId=2993&source=Article&c=12&cid=23#tab:homeTab:crumb:7:artId:4878
     $file = INIT::$UTILS_ROOT . '/Langs/languageDomains.json';
     if (!file_exists($file)) {
         log::doLog("no subject defs found in {$file}");
         exit;
     }
     $string = file_get_contents($file);
     //parse to associative array
     $subjects = json_decode($string, true);
     Utils::raiseJsonExceptionError();
     self::$subjectMap = $subjects;
 }