Home
last modified time | relevance | path

Searched refs:pref (Results 1 – 2 of 2) sorted by relevance

/dokuwiki/inc/
H A DPrefCookie.php30 * @param string $pref The preference to read
34 public function get(string $pref, $default = null) argument
36 return $this->data[$pref] ?? $default;
44 * @param string $pref The preference to set
48 public function set(string $pref, ?string $value): void argument
51 if (isset($this->data[$pref])) {
52 unset($this->data[$pref]);
55 $this->data[$pref] = $value;
H A Dcommon.php1890 * @param string $pref preference key
1894 function get_doku_pref($pref, $default) argument
1896 return (new PrefCookie())->get($pref, $default);
1905 * @param string $pref preference key
1908 function set_doku_pref($pref, $val) argument
1916 (new PrefCookie())->set($pref, $val);