26 "component" => array(
"global"),
27 "lang" =>
"acc_next"),
29 "component" => array(
"global"),
30 "lang" =>
"acc_previous"),
32 "component" => array(
"global"),
33 "lang" =>
"acc_delete"),
35 "component" => array(
"global"),
36 "lang" =>
"acc_last_visited"),
38 "component" => array(
"global"),
39 "lang" =>
"acc_tree_on"),
41 "component" => array(
"global"),
42 "lang" =>
"acc_tree_off"),
44 "component" => array(
"mail"),
45 "lang" =>
"acc_reply"),
47 "component" => array(
"mail"),
48 "lang" =>
"acc_forward_mail"),
50 "component" => array(
"frm"),
51 "lang" =>
"acc_mark_all_read")
61 $empty_keys = array();
62 foreach (self::$func_def as $f => $c)
77 return $lng->txt(self::$func_def[$a_func_id][
"lang"]);
88 foreach (self::$func_def[$a_func_id][
"component"] as $c)
90 $c_str.= $lim.$lng->txt(
"acc_comp_".$c);
102 static function getKeys($lang_key =
"0", $a_ignore_default =
false)
109 if ($lang_key !=
"0" && !$a_ignore_default)
115 $set = $ilDB->query(
"SELECT * FROM acc_access_key ".
116 " WHERE lang_key = ".$ilDB->quote($lang_key,
"text")
118 while ($rec = $ilDB->fetchAssoc($set))
120 $keys[$rec[
"function_id"]] = $rec[
"access_key"];
131 static function getKey($a_func_id, $lang_key =
"0", $a_ignore_default =
false)
138 if ($lang_key !=
"0" && !$a_ignore_default)
144 $set = $ilDB->query(
"SELECT * FROM acc_access_key ".
145 " WHERE lang_key = ".$ilDB->quote($lang_key,
"text").
146 " AND function_id = ".$ilDB->quote($a_func_id,
"integer")
148 if ($rec = $ilDB->fetchAssoc($set))
150 $key = $rec[
"access_key"];
165 $ilDB->manipulate(
"DELETE FROM acc_access_key WHERE ".
166 "lang_key = ".$ilDB->quote($a_lang_key,
"text")
169 foreach ($a_keys as $func_id => $acc_key)
171 $ilDB->manipulate(
"INSERT INTO acc_access_key ".
172 "(lang_key, function_id, access_key) VALUES (".
173 $ilDB->quote($a_lang_key,
"text").
",".
174 $ilDB->quote($func_id,
"integer").
",".
175 $ilDB->quote(strtolower(trim($acc_key)),
"text").