FunctionsOverview

From WoWRosterWiKi
Revision as of 02:38, 5 February 2008 by Nefuh (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
WR.net

Important note: When you edit this page, you agree to release your contribution into the public domain.
If you do not want this or can not do this because of license restrictions, please do not edit.

Contents


Function Overview
Overview over all functions in the Roster that can be used by Addon Developers.


Latest changes




Global functions

These function are located in functions.lib.php

border

Parameters: $style, $mode, $header_txt, $width Starts or ends fancy bodering containers


Top

setTooltip

Parameters: $var, $content Makes a tootip and places it into the tooltip array


Top

getAllTooltips

Gathers all tootips and places them into javascript variables


Top

sql_highlight

Parameters: $sql Highlight certain keywords in a SQL query


Top

die_quietly

Parameters: $text, $title, $file, $line, $sql Clean replacement for die(), outputs a message with debugging info if needed and ends output


Top

roster_die

Parameters: $message, $title, $style Draw a message box with the specified border color, then die cleanly


Top

ajax_die

Parameters: $text, $title, $file, $line, $sql Print a roster-ajax XML error message
Top

backtrace

Print a debug backtrace. This works in PHP4.3.x+, there is an integrated function for this starting PHP5 but I prefer always having the same layout.
Top

stripAllHtml

Parameters: $string This will remove HTML tags, javascript sections and white space. It will also convert some common HTML entities to their text equivalent


Top

check_if_image

Parameters: $filename This will check if the given Filename is an image


Top

colorTooltip

Parameters: $tooltip, $caption_color, $locale, $inline_caption Tooltip colorizer function with string cleaning. Use only with makeOverlib


Top

cleanTooltip

Parameters: $tooltip, $caption_color, $inline_caption Cleans up the tooltip and parses an inline_caption if needed. Use only with #makeOverlib


Top

makeOverlib

Parameters: $tooltip, $caption, $caption_color, $mode, $locale, $extra_parameters Easy all in one function to make overlib tooltips. Creates a string for insertion into any html tag that has "onmouseover" and "onmouseout" events


Top

messagebox

Parameters: $message, $title, $style, $width Draw a message box with the specified border color.


Top

scrollbox

Parameters: $message, $title, $style, $width, $height Draw a 300x550px scrolling messagebox with the specified border color.


Top

messageboxtoggle

Parameters: $message, $title, $style, $open, $width Draw a message box with the specified border color.


Top

scrollboxtoggle

Parameters: $message, $title, $style, $open, $width, $height Draw a 300x550px scrolling messagebox with the specified border color.


Top

escape_array

Parameters: $array Recursively escape $array


Top

stripslash_array

Parameters: $array Recursively stripslash $array


Top

readbleDate

Parameters: $datetime, $offset Converts a datetime field into a readable date


Top

get_file_ext

Parameters: $filename Gets a file's extention passed as a string


Top

seconds_to_time

Parameters: $seconds Converts seconds to a string delimited by time values. Will show w,d,h,m,s


Top

getaddon

Parameters: $addonname Sets up addon data for use in the addon framework


Top

active_addon

Parameters: $name Check to see if an addon is active or not


Top

urlgrabber

Parameters: $url, $timeout, $user_agent, $loopcount Handles retrieving the contents of a URL trying multiple methods. Current methods are curl, file_get_contents, fsockopen and will try each in that order


Top

request_uri

Stupid function to create an REQUEST_URI for IIS 5 servers


Top

file_writer

Parameters: $filename, &$content, $mode Attempts to write a file to the file system


Top

php_as_nobody

Parameters: $file No Description
Top

_aprint

Parameters: $arr, $tab Debugging function dumps arrays/object formatted. Do Not call this, call aprint()


Top

aprint

Parameters: $arr, $prefix, $return Debugging function dumps arrays/object formatted


Top

socketColorEn

Parameters: $socket_color, $locale Helper function that returns the localized gem color in english


Top

format_microtime

Parameters: none No Description
Top

array_overlay

Parameters: $skel, $arr A better array_merge()


Top

updateCheck

Parameters: $addon Checks an addon download id on the wowroster.net rss feed. And informs if there is an update.


Top

dummy

Parameters: none Dummy function. For when you need a callback that doesn't do anything.
Top

Personal tools
Namespaces
Variants
Actions
WoWRoster
Navigation
Toolbox