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"),
58 $empty_keys = array();
59 foreach (self::$func_def as
$f => $c)
74 return $lng->txt(self::$func_def[$a_func_id][
"lang"]);
85 foreach (self::$func_def[$a_func_id][
"component"] as $c)
87 $c_str.= $lim.$lng->txt(
"acc_comp_".$c);
99 static function getKeys($lang_key =
"0", $a_ignore_default =
false)
106 if ($lang_key !=
"0" && !$a_ignore_default)
112 $set = $ilDB->query(
"SELECT * FROM acc_access_key ".
113 " WHERE lang_key = ".$ilDB->quote($lang_key,
"text")
115 while ($rec = $ilDB->fetchAssoc($set))
117 $keys[$rec[
"function_id"]] = $rec[
"access_key"];
128 static function getKey($a_func_id, $lang_key =
"0", $a_ignore_default =
false)
135 if ($lang_key !=
"0" && !$a_ignore_default)
141 $set = $ilDB->query(
"SELECT * FROM acc_access_key ".
142 " WHERE lang_key = ".$ilDB->quote($lang_key,
"text").
143 " AND function_id = ".$ilDB->quote($a_func_id,
"integer")
145 if ($rec = $ilDB->fetchAssoc($set))
147 $key = $rec[
"access_key"];
162 $ilDB->manipulate(
"DELETE FROM acc_access_key WHERE ".
163 "lang_key = ".$ilDB->quote($a_lang_key,
"text")
166 foreach ($a_keys as $func_id => $acc_key)
168 $ilDB->manipulate(
"INSERT INTO acc_access_key ".
169 "(lang_key, function_id, access_key) VALUES (".
170 $ilDB->quote($a_lang_key,
"text").
",".
171 $ilDB->quote($func_id,
"integer").
",".
172 $ilDB->quote(strtolower(trim($acc_key)),
"text").