1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-27 12:05:06 +02:00
ttrss/classes/Db_Prefs.php

19 lines
457 B
PHP
Raw Normal View History

2013-04-18 10:00:01 +02:00
<?php
class Db_Prefs {
// this class is a stub for the time being (to be removed)
2013-04-18 10:00:01 +02:00
/**
* @return bool|int|null|string
*/
function read(string $pref_name, ?int $user_id = null, bool $die_on_error = false) {
return get_pref($pref_name, $user_id);
2013-04-18 10:00:01 +02:00
}
/**
* @param mixed $value
*/
function write(string $pref_name, $value, ?int $user_id = null, bool $strip_tags = true): bool {
return set_pref($pref_name, $value, $user_id, $strip_tags);
2013-04-18 10:00:01 +02:00
}
2017-04-26 23:24:17 +02:00
}