Make sure there is an http:// on a URL. If already present then string is returned untouched.
Return a value which may be defaulted Returns the value of the variable, if it is valid, otherwise returns the specified default value.
Exit with HTTP error code Send a simple error code and then die.
Exit the application with error message Echo the message and leave. Intended to handle 'emergencies'.
Returns the name in the form SURNAME, Firstname.
Add a parameter keyvalue pair to a URL. We check that it isn't already there, and use the right delimiter.
Remove a parameter keyvalue pair from a URL.
Return an HTTP error message
Returns a formatted HTTP Error
Format a string (dotted) form of an IP address. We make sure we have
the full dotted quad, and if we have to pad it with zeroes, then we add the network spec (/24, /16 etc.) as well. If the given IP already has a netmask, then we don't change it, and assume the IP is already correctly formatted by someone who knows what they are doing!
Check string to see if it is in IPv4 format. This is pretty simplistic. It returns true if the string $ip is of the form 'n.n.n.n'.
Send a message to the system logfile Send message to the syslog, prefixed with APP_NAME nicely. Saves having to prefix it each time.
DEPRECATED: This global utility function is now deprecated since the
code is non-database-independent, and was written solely to support Postgresql sequences. Instead, please update your code to use the new 'get_next_sequencevalue()' global function, or 'next_sequencevalue()' methods on the 'dbupdate' and 'dbinsert' classes, or else use the new 'dbseq' class itself. Return next sequence value - get the next value of the given sequence
Returns a nicely formatted size string for displaying
byte sizes. Eg. 1024 returns '1Kb', etc. Obviously this is a display-only string, not a number. You can specify the number of decimal places, and the thousands separator if you for example want nullstring instead of a comma.
Returns a nicely formatted time string in '3d 12h 14m 33s' format, given a number of seconds. Leading elements are suppressed if they are zero.
Detect a URL with the "xxx://" protocol prefix. Returns true if it does, else false.
Returns a value inside quotes. The type of quotes (single or double) are determined from the value content. If the content already has a double quote in it, then single quotes are used, else (default) double quotes are used.
Resolve a foreign key value Resolve a simple single-level foreign key. The variable 'display_fields' can contain multiple fields separated by the "|" char. A literal is prefixed by "#".
Strip off any xxxx:// protocol prefix from a URL. Usually in Axyl, this is "http://", hence the name of this function.
Insert vertical space in table Insert some vertical whitespace into a table.
Documentation generated by phpDocumentor 1.3.0RC3