27 $this->db = $DIC->database();
48 $this->candidates =
array();
51 $set = $this->db->query(
"SELECT module, identifier FROM lng_log ");
52 while ($rec = $this->db->fetchAssoc($set)) {
53 $log[$rec[
"module"] .
":" . $rec[
"identifier"]] = 1;
55 $set = $this->db->query(
"SELECT module, identifier FROM lng_data WHERE lang_key = " .
56 $this->db->quote(
"en",
"text") .
" ORDER BY module, identifier");
57 while ($rec = $this->db->fetchAssoc($set)) {
58 if (!isset(
$log[$rec[
"module"] .
":" . $rec[
"identifier"]])) {
59 $this->candidates[$rec[
"identifier"]] = $rec[
"module"];
84 \RecursiveIteratorIterator::SELF_FIRST,
85 \RecursiveIteratorIterator::CATCH_GET_CHILD
87 '/' . self::ILIAS_CLASS_FILE_RE .
'/i' 101 $tokens = token_get_all(file_get_contents($file_path));
112 $num_tokens = count($tokens);
114 for (
$i = 0;
$i < $num_tokens;
$i++) {
115 if (is_string($tokens[
$i])) {
119 $token = $tokens[
$i][0];
123 case T_CONSTANT_ENCAPSED_STRING:
124 $lv = str_replace(
array(
"'",
'"'),
"", $tokens[$i][1]);
126 unset($this->candidates[$lv]);
__construct()
ilLangDeprecated constructor.
parseCodeFiles()
Parse Code Files.
Search for deprecated lang vars.
const ILIAS_CLASS_FILE_RE
getDeprecatedLangVars()
Get deprecated lang vars.
getCandidates()
Get candidates from the db.
Create styles array
The data for the language used.
parseCodeFile($file_path)
Parse code file and reduce candidates.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file