Functions | |
| repMapString ($map) | |
| basePath () | |
| loadFile ($sFilename, $sCharset= 'UTF-8') | |
| errorPage ($errorText, $errorCode=403) | |
| genUrl ($urlParams, $keys=array(), $nonQueryParams=array()) | |
| getElementByTagName ($obj, $name) | |
| startswith ($haystack, $needle) | |
| endsWith ($haystack, $needle) | |
| opttostring ($opts) | |
Functionality which doesn't belong anywhere else
| basePath | ( | ) |
Get the location on the server where the top level script is located
| endsWith | ( | $haystack, | |
| $needle | |||
| ) |
Checks if one string ends with another string
| $haystack | the string to search |
| $needle | the string to search for |
| errorPage | ( | $errorText, | |
$errorCode = 403 |
|||
| ) |
Generate a status page and exit
| $errorText | the text to be displayed in the body |
| $errorCode | the status code to be served |
| genUrl | ( | $urlParams, | |
$keys = array(), |
|||
$nonQueryParams = array() |
|||
| ) |
Generates an URL for the specified parameters
| $urlParams | an associative array of the values already set |
| $keys | a set of values to override $urlParams |
| $nonQueryParams | a list of keys, where values should be in the URL, rather than the query part, note that the order is important |
| getElementByTagName | ( | $obj, | |
| $name | |||
| ) |
Retrieves a single subelement
| Exception | if number of elements are different from 1 |
| $obj | the xml element to search in |
| $name | the name of the element to search for |
| loadFile | ( | $sFilename, | |
$sCharset = 'UTF-8' |
|||
| ) |
Loads a file
| $sFilename | name of the file to load |
| $sCharset | the character encoding of the file |
| opttostring | ( | $opts | ) |
Generates the query part of an URI
| $opts | an associative array of options |
| repMapString | ( | $map | ) |
Generates a representation for an array of key => value pairs
| $map | the input array |
| startswith | ( | $haystack, | |
| $needle | |||
| ) |
Checks if one string start with another string
| $haystack | the string to search |
| $needle | the string to search for |
1.8.6