mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-06 14:17:27 +02:00
13 lines
512 B
PHP
13 lines
512 B
PHP
<?php
|
|
class Db_Prefs {
|
|
// this class is a stub for the time being (to be removed)
|
|
|
|
function read(string $pref_name, ?int $user_id = null, bool $die_on_error = false): bool|int|null|string {
|
|
return Prefs::get($pref_name, $user_id ?: $_SESSION['uid'], $_SESSION['profile'] ?? null);
|
|
}
|
|
|
|
function write(string $pref_name, mixed $value, ?int $user_id = null, bool $strip_tags = true): bool {
|
|
return Prefs::set($pref_name, $value, $user_id ?: $_SESSION['uid'], $_SESSION['profile'] ?? null, $strip_tags);
|
|
}
|
|
}
|