utility.php
Table of Contents
Functions
- twfy_debug() : mixed
- exception_handler() : mixed
- error_handler() : mixed
- vardump() : mixed
- adodb_backtrace() : mixed
- getmicrotime() : mixed
- twfy_debug_timestamp() : mixed
- format_timestamp() : mixed
- format_date() : mixed
- format_time() : mixed
- relative_time() : mixed
- parse_date() : mixed
- slugify() : mixed
- strip_tags_tospaces() : mixed
- trim_characters() : mixed
- filter_user_input() : mixed
- Filters user input to remove unwanted HTML tags etc
- prepare_comment_for_display() : mixed
- htmlentities_notags() : mixed
- _htmlentities() : mixed
- _htmlspecialchars() : mixed
- get_canonical_gid() : mixed
- fix_gid_from_db() : mixed
- gid_to_anchor() : mixed
- preg_replacement_quote() : mixed
- send_template_email() : mixed
- twfy_verp_envelope_sender() : mixed
- send_email() : mixed
- get_http_var() : mixed
- get_cookie_var() : mixed
- hidden_form_vars() : mixed
- hidden_vars() : mixed
- make_ranking() : mixed
- make_plural() : mixed
- entities_to_numbers() : mixed
- make_member_url() : mixed
- member_full_name() : mixed
- by_peer_name() : mixed
- prettify_office() : mixed
- major_summary() : mixed
- _major_summary_title() : mixed
- score_to_strongly() : mixed
- valid_url() : mixed
- redirect() : mixed
- cache_version() : mixed
Functions
twfy_debug()
twfy_debug(mixed $header[, mixed $text = "" ]) : mixed
Parameters
- $header : mixed
- $text : mixed = ""
exception_handler()
exception_handler(mixed $e) : mixed
Parameters
- $e : mixed
error_handler()
error_handler(mixed $errno, mixed $errmsg, mixed $filename, mixed $linenum, mixed $vars) : mixed
Parameters
- $errno : mixed
- $errmsg : mixed
- $filename : mixed
- $linenum : mixed
- $vars : mixed
vardump()
vardump(mixed $blah) : mixed
Parameters
- $blah : mixed
adodb_backtrace()
adodb_backtrace([mixed $print = true ]) : mixed
Parameters
- $print : mixed = true
getmicrotime()
getmicrotime() : mixed
twfy_debug_timestamp()
twfy_debug_timestamp([mixed $label = "" ]) : mixed
Parameters
- $label : mixed = ""
format_timestamp()
format_timestamp(mixed $timestamp, mixed $format) : mixed
Parameters
- $timestamp : mixed
- $format : mixed
format_date()
format_date(mixed $date, mixed $format) : mixed
Parameters
- $date : mixed
- $format : mixed
format_time()
format_time(mixed $time, mixed $format) : mixed
Parameters
- $time : mixed
- $format : mixed
relative_time()
relative_time(mixed $datetime) : mixed
Parameters
- $datetime : mixed
parse_date()
parse_date(mixed $date) : mixed
Parameters
- $date : mixed
slugify()
slugify(mixed $text) : mixed
Parameters
- $text : mixed
strip_tags_tospaces()
strip_tags_tospaces(mixed $text) : mixed
Parameters
- $text : mixed
trim_characters()
trim_characters(mixed $text, mixed $start, mixed $length[, mixed $url_length = 60 ]) : mixed
Parameters
- $text : mixed
- $start : mixed
- $length : mixed
- $url_length : mixed = 60
filter_user_input()
Filters user input to remove unwanted HTML tags etc
filter_user_input(mixed $text, mixed $filter_type) : mixed
Parameters
- $text : mixed
- $filter_type : mixed
prepare_comment_for_display()
prepare_comment_for_display(mixed $text) : mixed
Parameters
- $text : mixed
htmlentities_notags()
htmlentities_notags(mixed $text) : mixed
Parameters
- $text : mixed
_htmlentities()
_htmlentities(mixed $s) : mixed
Parameters
- $s : mixed
_htmlspecialchars()
_htmlspecialchars(mixed $s) : mixed
Parameters
- $s : mixed
get_canonical_gid()
get_canonical_gid(mixed $gid) : mixed
Parameters
- $gid : mixed
fix_gid_from_db()
fix_gid_from_db(mixed $gid) : mixed
Parameters
- $gid : mixed
gid_to_anchor()
gid_to_anchor(mixed $gid) : mixed
Parameters
- $gid : mixed
preg_replacement_quote()
preg_replacement_quote(mixed $s) : mixed
Parameters
- $s : mixed
send_template_email()
send_template_email(mixed $data, mixed $merge[, mixed $bulk = false ][, mixed $want_bounces = false ][, mixed $lang = '' ]) : mixed
Parameters
- $data : mixed
- $merge : mixed
- $bulk : mixed = false
- $want_bounces : mixed = false
- $lang : mixed = ''
twfy_verp_envelope_sender()
twfy_verp_envelope_sender(mixed $recipient) : mixed
Parameters
- $recipient : mixed
send_email()
send_email(mixed $to, mixed $subject, mixed $message[, mixed $bulk = false ][, mixed $from = '' ][, mixed $want_bounces = false ][, mixed $html = '' ]) : mixed
Parameters
- $to : mixed
- $subject : mixed
- $message : mixed
- $bulk : mixed = false
- $from : mixed = ''
- $want_bounces : mixed = false
- $html : mixed = ''
get_http_var()
get_http_var(mixed $name[, mixed $default = '' ][, mixed $allow_array = false ]) : mixed
Parameters
- $name : mixed
- $default : mixed = ''
- $allow_array : mixed = false
get_cookie_var()
get_cookie_var(mixed $name[, mixed $default = '' ]) : mixed
Parameters
- $name : mixed
- $default : mixed = ''
hidden_form_vars()
hidden_form_vars([mixed $omit = array() ]) : mixed
Parameters
- $omit : mixed = array()
hidden_vars()
hidden_vars([mixed $omit = array() ]) : mixed
Parameters
- $omit : mixed = array()
make_ranking()
make_ranking(mixed $rank) : mixed
Parameters
- $rank : mixed
make_plural()
make_plural(mixed $word, mixed $number) : mixed
Parameters
- $word : mixed
- $number : mixed
entities_to_numbers()
entities_to_numbers(mixed $string) : mixed
Parameters
- $string : mixed
make_member_url()
make_member_url(mixed $name[, mixed $const = '' ][, mixed $house = HOUSE_TYPE_COMMONS ][, mixed $pid = null ]) : mixed
Parameters
- $name : mixed
- $const : mixed = ''
- $house : mixed = HOUSE_TYPE_COMMONS
- $pid : mixed = null
member_full_name()
member_full_name(mixed $house, mixed $title, mixed $given_name, mixed $family_name, mixed $lordofname) : mixed
Parameters
- $house : mixed
- $title : mixed
- $given_name : mixed
- $family_name : mixed
- $lordofname : mixed
by_peer_name()
by_peer_name(mixed $a, mixed $b) : mixed
Parameters
- $a : mixed
- $b : mixed
prettify_office()
prettify_office(mixed $pos, mixed $dept) : mixed
Parameters
- $pos : mixed
- $dept : mixed
major_summary()
major_summary(mixed $data[, mixed $echo = true ]) : mixed
Parameters
- $data : mixed
- $echo : mixed = true
_major_summary_title()
_major_summary_title(mixed $major, mixed $data, mixed $LISTURL, mixed $daytext) : mixed
Parameters
- $major : mixed
- $data : mixed
- $LISTURL : mixed
- $daytext : mixed
score_to_strongly()
score_to_strongly(mixed $dmpscore) : mixed
Parameters
- $dmpscore : mixed
valid_url()
valid_url(mixed $url) : mixed
Parameters
- $url : mixed
redirect()
redirect(mixed $url[, mixed $code = 302 ]) : mixed
Parameters
- $url : mixed
- $code : mixed = 302
cache_version()
cache_version(mixed $file) : mixed
Parameters
- $file : mixed