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_dashboard")
 
   65        $empty_keys = array();
 
   66        foreach (self::$func_def as 
$f => 
$c) {
 
   82        return $lng->txt(self::$func_def[$a_func_id][
"lang"]);
 
   95        foreach (self::$func_def[$a_func_id][
"component"] as 
$c) {
 
   96            $c_str .= $lim . 
$lng->txt(
"acc_comp_" . 
$c);
 
  108    public static function getKeys($lang_key = 
"0", $a_ignore_default = 
false)
 
  117        if ($lang_key != 
"0" && !$a_ignore_default) {
 
  123            "SELECT * FROM acc_access_key " .
 
  124            " WHERE lang_key = " . 
$ilDB->quote($lang_key, 
"text")
 
  126        while ($rec = 
$ilDB->fetchAssoc($set)) {
 
  127            $keys[$rec[
"function_id"]] = $rec[
"access_key"];
 
  138    public static function getKey($a_func_id, $lang_key = 
"0", $a_ignore_default = 
false)
 
  147        if ($lang_key != 
"0" && !$a_ignore_default) {
 
  153            "SELECT * FROM acc_access_key " .
 
  154            " WHERE lang_key = " . 
$ilDB->quote($lang_key, 
"text") .
 
  155            " AND function_id = " . 
$ilDB->quote($a_func_id, 
"integer")
 
  157        if ($rec = 
$ilDB->fetchAssoc($set)) {
 
  158            $key = $rec[
"access_key"];
 
  169    public static function writeKeys($a_keys, $a_lang_key = 
"0")
 
  176            "DELETE FROM acc_access_key WHERE " .
 
  177            "lang_key = " . 
$ilDB->quote($a_lang_key, 
"text")
 
  180        foreach ($a_keys as $func_id => $acc_key) {
 
  181            $ilDB->manipulate(
"INSERT INTO acc_access_key " .
 
  182                "(lang_key, function_id, access_key) VALUES (" .
 
  183                $ilDB->quote($a_lang_key, 
"text") . 
"," .
 
  184                $ilDB->quote($func_id, 
"integer") . 
"," .
 
  185                $ilDB->quote(strtolower(trim($acc_key)), 
"text") .
 
An exception for terminatinating execution or to throw for unit testing.
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.