init ajax engine. if you want to use it, call it before(!) html_head()
static
true
ajax_init
()
check whether a new posting of this user is approved by default or not
static
boolean
get_post_approvement
([integer $uid = 0], [integer $gid = 0])
-
integer
$uid: user id, current if not given
-
integer
$gid: group id, current if not given
fetch any posting prefixes and cache it
static
array
get_post_prefix_list
([boolean $strict = false])
-
boolean
$strict: if 'true', it returns only prefixes without access restrictions
get posting weight list for html output
static
array
get_post_weight_list
([integer $gid = 0])
-
integer
$gid: group id, current if not given
output html footer
static
boolean
html_foot
()
output html header
static
boolean
html_head
(string $title, [string $aux = ''])
-
string
$title: title text
-
string
$aux: additional text for title line in html head segment
output a redirection. if you pass an uri directly (instead of XF::link()), ensure it's "urlencoded"!
static
void
html_redirect
(integer $class, string $uri, [string $msg = ''])
-
integer
$class: operation was a success '1', a failure '0' or redirect silently '-1'
-
string
$uri: full destination uri (correctly encoded!)
-
string
$msg: message to show, if class is not '-1'
fetch a string from translation table
static
string
i18n
(string $a, [string $b = ''])
-
string
$a: string key
-
string
$b: selected language
fetch an image from imageset
static
string
image
(string $a)
do a translation request like '{[LANGUAGE]:STRING_IDENTIFIER}'
static
string
lang_str
(string $a, [boolean $b = true])
-
string
$a: input stream
-
boolean
$b: if 'true', missing string identifier will result in error message
load a language namespace and cache it locally
static
true
load_lang_res
(string $rlang, string $namespace)
-
string
$rlang: name of language (i.e. 'en')
-
string
$namespace: and its namespace (i.e. 'core')
check whether the selected user has access to a topic or not
static
boolean
topic_access
( &$cache, &$prefix, [integer $uid = 0], [integer $gid = 0], array $cache, array $prefix)
-
array
$cache: returned resource from XFCache::topic()
-
array
$prefix: returned resource from XFUI::get_post_prefix_list()
-
integer
$uid: user id, current if not given
-
integer
$gid: group id, current if not given
-
&$cache
-
&$prefix