User Tools

Site Tools


core_docs:utility_functions

This is an old revision of the document!


Utility functions

This page is a work in progress.

clean_url

clean_img_name

to7bit

email_template

sendmail

subval_sort

isFile

getFiles

get_execution_time

getXML

XMLsave

lngDate

shtDate

cl

Signature

cl($data)

Description
Cleans $data consecutively with html_entity_decode, strip_tags and strip_slashes

Parameters

  • $data, the data string to clean

tsl

Signature

tsl($path)

Description
Adds a trailing slash to $path if there isn't one yet.

Parameters

  • $path, the path to add a trailing slash to.

in_arrayi

find_url

strippath

Signature

strippath($path_to_file)

Description
Returns the filename and extension from $path_to_file, using pathinfo.

strip_quotes

Signature

strip_quotes($text)

Description
Strips HTML entity quotes, double and single quotes from $text and returns the result.

Parameters

  • $text, the string to strip quotes from

encode_quotes

Signature

encode_quotes($text)

Description
Encodes quotes as HTML entities with htmlspecialchars and trims whitespace in $text.

Parameters

  • $text, the text to encode quotes in.

redirect

i18n

Signature

i18n($key[, $echo=true])

Description
Outputs the translation of $key in the global $i18n (in the current language, or en_US if it does not exist), or returns it if $echo is false.

Parameters

  • $key, the key of the translation to find
  • $echo (optional), whether to echo or return the value. If $echo is false, acts the same as i18n_r

i18n_r

i18n_merge

i18n_merge_impl

safe_slash_html

xmlFilterChars

getRegexUnicode

safe_strip_decode

strip_decode

pathinfo_filename

getFileExtension

suggest_site_path

myself

get_themes

htmldecode

lowercase

find_accesskey

_id

defined_array

check_empty_folder

folder_items

validate_url

formatXmlString_legacy

formatXmlString

http_protocol

file_mime_type

is_frontend

get_site_version

get_site_lang

toBytes

removerelativepath

directoryToArray

getDef

isDebug

isBeta

requestIsAjax

arrayIsMultid

returnJsArray

header_xframeoptions

strip_whitespace

strip_content

core_docs/utility_functions.1465118179.txt.gz · Last modified: 2016/06/05 09:16 by Tyblitz