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)
136 if ($lang_key !=
"0" && !$a_ignore_default)
142 $set = $ilDB->query(
"SELECT * FROM acc_access_key ".
143 " WHERE lang_key = ".$ilDB->quote($lang_key,
"text").
144 " AND function_id = ".$ilDB->quote($a_func_id,
"integer")
146 if ($rec = $ilDB->fetchAssoc($set))
148 $key = $rec[
"access_key"];
163 $ilDB->manipulate(
"DELETE FROM acc_access_key WHERE ".
164 "lang_key = ".$ilDB->quote($a_lang_key,
"text")
167 foreach ($a_keys as $func_id => $acc_key)
169 $ilDB->manipulate(
"INSERT INTO acc_access_key ".
170 "(lang_key, function_id, access_key) VALUES (".
171 $ilDB->quote($a_lang_key,
"text").
",".
172 $ilDB->quote($func_id,
"integer").
",".
173 $ilDB->quote(strtolower(trim($acc_key)),
"text").