27                        "component" => array(
"global"),
 
   28                        "lang" => 
"acc_next"),
 
   30                        "component" => array(
"global"),
 
   31                        "lang" => 
"acc_previous"),
 
   33                        "component" => array(
"global"),
 
   34                        "lang" => 
"acc_delete"),
 
   36                        "component" => array(
"global"),
 
   37                        "lang" => 
"acc_last_rep_visited"),
 
   39                        "component" => array(
"global"),
 
   40                        "lang" => 
"acc_tree_on"),
 
   42                        "component" => array(
"global"),
 
   43                        "lang" => 
"acc_tree_off"),
 
   45                        "component" => array(
"mail"),
 
   46                        "lang" => 
"acc_reply"),
 
   48                        "component" => array(
"mail"),
 
   49                        "lang" => 
"acc_forward_mail"),
 
   51                        "component" => array(
"frm"),
 
   52                        "lang" => 
"acc_mark_all_read"),
 
   54                        "component" => array(
"global"),
 
   55                        "lang" => 
"acc_personal_desktop")
 
   65                $empty_keys = array();
 
   66                foreach (self::$func_def as $f => $c)
 
   81                return $lng->txt(self::$func_def[$a_func_id][
"lang"]);
 
   92                foreach (self::$func_def[$a_func_id][
"component"] as $c)
 
   94                        $c_str.= $lim.$lng->txt(
"acc_comp_".$c);
 
  106        static function getKeys($lang_key = 
"0", $a_ignore_default = 
false)
 
  113                if ($lang_key != 
"0" && !$a_ignore_default)
 
  119                $set = 
$ilDB->query(
"SELECT * FROM acc_access_key ".
 
  120                        " WHERE lang_key = ".
$ilDB->quote($lang_key, 
"text")
 
  122                while ($rec  = 
$ilDB->fetchAssoc($set))
 
  124                        $keys[$rec[
"function_id"]] = $rec[
"access_key"];
 
  135        static function getKey($a_func_id, $lang_key = 
"0", $a_ignore_default = 
false)
 
  142                if ($lang_key != 
"0" && !$a_ignore_default)
 
  148                $set = 
$ilDB->query(
"SELECT * FROM acc_access_key ".
 
  149                        " WHERE lang_key = ".
$ilDB->quote($lang_key, 
"text").
 
  150                        " AND function_id = ".$ilDB->quote($a_func_id, 
"integer")
 
  152                if ($rec  = 
$ilDB->fetchAssoc($set))
 
  154                        $key = $rec[
"access_key"];
 
  169                $ilDB->manipulate(
"DELETE FROM acc_access_key WHERE ".
 
  170                        "lang_key = ".
$ilDB->quote($a_lang_key, 
"text")
 
  173                foreach ($a_keys as $func_id => $acc_key)
 
  175                        $ilDB->manipulate(
"INSERT INTO acc_access_key ".
 
  176                                "(lang_key, function_id, access_key) VALUES (".
 
  177                                $ilDB->quote($a_lang_key, 
"text").
",".
 
  178                                $ilDB->quote($func_id, 
"integer").
",".
 
  179                                $ilDB->quote(strtolower(trim($acc_key)), 
"text").
 
static getAllKeysEmpty()
Get all function ids with empty keys.
static writeKeys($a_keys, $a_lang_key="0")
Write keys.
static getFunctionName($a_func_id)
Get Function Name.
static getKeys($lang_key="0", $a_ignore_default=false)
Get access keys for language.
static getKey($a_func_id, $lang_key="0", $a_ignore_default=false)
Get single access key.
static getComponentNames($a_func_id)
Get Component Names.