generateUniqueId (line
82)
Generate a unique ID (used for the ID for unique users)
string
generateUniqueId
()
getMemoryUsage (line
125)
Get the amount of bytes of memory usage at this particular moment.
int
getMemoryUsage
()
removeSpecialChars (line
57)
Remove an assortment of special characters from a variable or array:
- Strip slashes if magic quotes are turned on.
2. Strip out any HTML 3. Strip out any CRLF 4. Remove any white space
string
removeSpecialChars
(string &$var)
-
string
$var: The variable to process.
startBenchmark (line
93)
Start benchmarking, if it is turned on
void
startBenchmark
(array $conf, object $timer)
-
array
$conf: The configuration array
-
object
$timer: The timer object from Pear
stopBenchmark (line
110)
Stop benchmarking, if it is turned on
void
stopBenchmark
(array $conf, object $timer)
-
array
$conf: The configuration array
-
object
$timer: The timer object from Pear