Public Member Functions | |
| formatTimestamp ($timestamp) | |
| Format a UNIX timestamp into English. | |
| getURI () | |
| Get the URI of the current script. | |
| getURINoArgs () | |
| Get the URI for the current script, without arguments. | |
| redirect ($url) | |
| Redirect to a new URL. | |
| redirectHTTPS ($req="") | |
| Redirect to a HTTPS version of a URL, or of the current page. | |
| removeSpace ($a) | |
| Remove the spaces from a string. | |
| safeSql ($a) | |
| Make input safe to be submitted to an SQL server (new version). | |
| safeSqlOld ($a, $ignoreBackslash=false) | |
| Make input safe to be submitted to an SQL server (old version). | |
| stripArgs ($uri) | |
| Strip the arguments from a URL. | |
| SWATFunctions::formatTimestamp | ( | $ | timestamp | ) |
Format a UNIX timestamp into English.
| $timestamp | [string]: The timestamp to format |
| SWATFunctions::getURI | ( | ) |
Get the URI of the current script.
| SWATFunctions::getURINoArgs | ( | ) |
Get the URI for the current script, without arguments.
| SWATFunctions::redirect | ( | $ | url | ) |
Redirect to a new URL.
| $url | [string]: The destination URL |
| SWATFunctions::redirectHTTPS | ( | $ | req = "" |
) |
Redirect to a HTTPS version of a URL, or of the current page.
| $req | [string]: (optional) Destination URL. If none is set, the current URI is used |
| SWATFunctions::removeSpace | ( | $ | a | ) |
Remove the spaces from a string.
| $a | [string]: Input text |
| SWATFunctions::safeSql | ( | $ | a | ) |
Make input safe to be submitted to an SQL server (new version).
| $a | [string]: Input text |
| SWATFunctions::safeSqlOld | ( | $ | a, | |
| $ | ignoreBackslash = false | |||
| ) |
| SWATFunctions::stripArgs | ( | $ | uri | ) |
Strip the arguments from a URL.
| $uri | [string]: Input URL/URI |
1.5.6