26        $this->db = 
$DIC->database();
 
   47        $this->candidates = array();
 
   50        $set = $this->db->query(
"SELECT module, identifier FROM lng_log ");
 
   51        while ($rec = $this->db->fetchAssoc($set)) {
 
   52            $log[$rec[
"module"] . 
":" . $rec[
"identifier"]] = 1;
 
   54        $set = $this->db->query(
"SELECT module, identifier FROM lng_data WHERE lang_key = " .
 
   55            $this->db->quote(
"en", 
"text") . 
" ORDER BY module, identifier");
 
   56        while ($rec = $this->db->fetchAssoc($set)) {
 
   57            if (!isset(
$log[$rec[
"module"] . 
":" . $rec[
"identifier"]])) {
 
   58                $this->candidates[$rec[
"identifier"]] = $rec[
"module"];
 
   68        foreach ($this->
getCodeFiles(ILIAS_ABSOLUTE_PATH) as $file) {
 
   81                new \RecursiveIteratorIterator(
 
   82                    new \RecursiveDirectoryIterator(
$path),
 
   83                    \RecursiveIteratorIterator::SELF_FIRST,
 
   84                    \RecursiveIteratorIterator::CATCH_GET_CHILD
 
   86                '/' . self::ILIAS_CLASS_FILE_RE . 
'/i' 
  100        $tokens = token_get_all(file_get_contents($file_path));
 
  111        $num_tokens = count($tokens);
 
  113        for (
$i = 0; 
$i < $num_tokens; 
$i++) {
 
  114            if (is_string($tokens[
$i])) {
 
  122                case T_CONSTANT_ENCAPSED_STRING:
 
  123                    $lv = str_replace(array(
"'", 
'"'), 
"", $tokens[
$i][1]);
 
  125                        unset($this->candidates[$lv]);
 
An exception for terminatinating execution or to throw for unit testing.
Search for deprecated lang vars.
parseCodeFiles()
Parse Code Files.
const ILIAS_CLASS_FILE_RE
getDeprecatedLangVars()
Get deprecated lang vars.
parseCodeFile($file_path)
Parse code file and reduce candidates.
__construct()
ilLangDeprecated constructor.
getCandidates()
Get candidates from the db.