3 declare(strict_types=1);
    33     private \ilDBInterface 
$db;
    41         $this->db = $DIC->database();
    61         $set = $this->db->query(
"SELECT module, identifier FROM lng_log ");
    62         while ($rec = $this->db->fetchAssoc($set)) {
    63             $log[$rec[
"module"] . 
":" . $rec[
"identifier"]] = 1;
    65         $set = $this->db->query(
"SELECT module, identifier FROM lng_data WHERE lang_key = " .
    66             $this->db->quote(
"en", 
"text") . 
" ORDER BY module, identifier");
    67         while ($rec = $this->db->fetchAssoc($set)) {
    68             if (!isset(
$log[$rec[
"module"] . 
":" . $rec[
"identifier"]])) {
    69                 $this->candidates[$rec[
"identifier"]] = $rec[
"module"];
    79         foreach ($this->
getCodeFiles(ILIAS_ABSOLUTE_PATH) as $file) {
    93                     \RecursiveIteratorIterator::SELF_FIRST,
    94                     \RecursiveIteratorIterator::CATCH_GET_CHILD
    96                 '/' . self::ILIAS_CLASS_FILE_RE . 
'/i'   108         $tokens = token_get_all(file_get_contents($file_path));
   109         $num_tokens = count($tokens);
   111         for ($i = 0; $i < $num_tokens; $i++) {
   112             if (is_string($tokens[$i])) {
   119                 case T_CONSTANT_ENCAPSED_STRING:
   120                     $lv = str_replace(array(
"'", 
'"'), 
"", $tokens[$i][1]);
   122                         unset($this->candidates[$lv]);
 parseCodeFile(string $file_path)
Parse code file and reduce candidates. 
 
__construct()
ilLangDeprecated constructor. 
 
parseCodeFiles()
Parse Code Files. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
const ILIAS_CLASS_FILE_RE
 
getDeprecatedLangVars()
Get deprecated lang vars. 
 
getCandidates()
Get candidates from the db. 
 
getCodeFiles(string $path)
Get code files.