calculate the age of a timestamp
static
mixed
calculate_age
(integer $a, [boolean $astext = true])
-
integer
$a: timestamp, should be GMT
-
boolean
$astext: return it as text or array?
create a calendar
static
array
calendar
(integer $min, integer $max)
-
integer
$min: beginning year
-
integer
$max: ending year
clears a uri (query string) from unencoded chars
static
string
clear_query_string
(string $a)
calculate reply count
static
integer
get_reply_count
(array $a, string $b)
-
array
$a: 'tree' from XFCache::topic()
-
string
$b: fetch unapproved '-' or approved '+' posts
check whether a posting has been read before during session
static
boolean
is_posting_read
(integer $topicid, integer $last)
-
integer
$topicid: topic id
-
integer
$last: timestamp of last posting in topic
limit any rating values to multiples of ten
static
integer
limit_rating
(string $a)
parse a text by several routines for output (usually used on posting text)
static
string
message
(string $a)
parse code blocks
static
string
parser_code
(string $a, [string $b = ''])
-
string
$a: input stream
-
string
$b: description of block
parse emoticon strings to images
static
string
parser_emoticon
( &$a, string $a)
-
string
$a: input stream
-
&$a
parse special formatting
static
string
parser_enhanced_format
(string $a)
parse references like images and links
static
string
parser_references
(string $input)
-
string
$input: input stream
parse simple tags like bold, italic etc.
static
string
parser_simple_format
(string $a)
resolve any tags to their id and return them
static
mixed
resolve_tags
(array $a)
-
array
$a: tag name, multiple allowed
manage the tags of a posting
static
boolean
tag_management
(string $postid, string $tags, [string $flags = ''])
-
string
$postid: post id
-
string
$tags: tags (names separated by comma)
-
string
$flags: 'skip_check' does not check for posting existence
query tags and put them to local cache for further operations
static
true
tag_query
([array $a = ''])
-
array
$a: tag id or a name, multiple allowed
do some calulations on an user account. currently it computes 'rating_bonus'.
static
boolean
user_calculations
([integer $a = 0])