LABEL_BASE_INDEX
public
mixed
LABEL_BASE_INDEX
= -1024
public
mixed
LABEL_BASE_INDEX
= -1024
public
mixed
PLUGIN_FEED_BASE_INDEX
= -128
public
mixed
SCHEMA_VERSION
= \Config::SCHEMA_VERSION
public
mixed
SUBSTRING_FOR_DATE
= 'SUBSTRING'
stylesheet_tag(string $filename[, array<string, mixed> $attributes = [] ]) : string
javascript_tag(string $filename[, array<string, mixed> $attributes = [] ]) : string
format_warning(string $msg[, string $id = "" ]) : string
format_notice(string $msg[, string $id = "" ]) : string
format_error(string $msg[, string $id = "" ]) : string
print_notice(string $msg) : string
print_warning(string $msg) : string
print_error(string $msg) : string
format_backtrace(array<int, array<string, mixed>> $trace) : string
ttrss_error_handler(int $errno, string $errstr, string $file, int $line) : bool
ttrss_fatal_handler() : bool
get_pref(string $pref_name[, int|null $owner_uid = null ]) : bool|int|null|string
set_pref(string $pref_name, bool|int|string $value[, int|null $owner_uid = null ][, bool $strip_tags = true ]) : bool
get_translations() : array<string, string>
startup_gettext() : void
get_version() : array<string, mixed>|string
get_schema_version() : int
_debug(string $msg) : void
getFeedUnread(int|string $feed[, bool $is_cat = false ]) : int
feed id or tag name
sanitize(string $str[, bool $force_remove_images = false ][, int|null $owner = null ][, string|null $site_url = null ][, array<int, string>|null $highlight_words = null ][, int|null $article_id = null ]) : false|string
Words to highlight in the HTML output.
The HTML, or false if an error occurred.
fetch_file_contents(array<string, bool|int|string>|string $params) : bool|string
false if something went wrong, otherwise string contents
rewrite_relative_url(string $base_url, string $rel_url) : string
Base URL (i.e. from where the document is)
Possibly relative URL in the document
Absolute URL
validate_url(string $url) : bool|string
false if something went wrong, otherwise the URL string
authenticate_user([string|null $login = null ][, string|null $password = null ][, bool $check_only = false ][, string|null $service = null ]) : bool
smart_date_time(int $timestamp[, int $tz_offset = 0 ][, int|null $owner_uid = null ][, bool $eta_min = false ]) : string
make_local_datetime(string $timestamp, bool $long[, int|null $owner_uid = null ][, bool $no_smart_dt = false ][, bool $eta_min = false ]) : string
get_self_url_prefix() : string
This is used for user http parameters unless HTML code is actually needed.
clean(mixed $param) : mixed|null
with_trailing_slash(string $str) : string
make_password([int $length = 12 ]) : string
validate_csrf(string|null $csrf_token) : bool
truncate_string(string $str, int $max_len[, string $suffix = '…' ]) : string
mb_substr_replace(string $original, string $replacement, int $position, int $length) : string
truncate_middle(string $str, int $max_len[, string $suffix = '…' ]) : string
Convert values accepted by tt-rss as true/false to PHP booleans
sql_bool_to_bool(null|string $s) : bool
null values are considered false
workaround for PDO casting all query parameters to string unless type is specified explicitly, which breaks booleans having false value because they become empty string literals ("") causing DB type mismatches and breaking SQL queries
bool_to_sql_bool(bool $s) : int
file_is_locked(string $filename) : bool
make_lockfile(string $filename) : resource|false
A file pointer resource on success, or false on error.
checkbox-specific workaround for PDO casting all query parameters to string unless type is specified explicitly, which breaks booleans having false value because they become empty string literals ("") causing DB type mismatches and breaking SQL queries
checkbox_to_sql_bool(mixed $val) : int
uniqid_short() : string
T_sprintf() : string
T_nsprintf() : string
init_plugins() : bool
gzdecode(string $string) : false|string
The decoded string or false if an error occurred.
get_random_bytes(int $length) : string
read_stdin() : string|null
implements_interface(object|string $class, string $interface) : bool
get_theme_path(string $theme) : string
theme_exists(string $theme) : bool
arr_qmarks(array<int, mixed> $arr) : string
get_scripts_timestamp() : int