void autoload(
string
$className)
|
|
Autoload static method for loading classes and interfaces.
Code from the PHP_CodeSniffer package by Greg Sherwood and Marc McIntyre
Parameters:
boolean log(
integer
$level, string
$str, [string
$file = false], [string
$class = false], [string
$function = false], [integer
$line = false])
|
|
Almost every deamon requires a log file, this function can facilitate that. Also handles class-generated errors, chooses either PEAR handling or PEAR-independant handling, depending on: self::getOption("usePEAR").
Also supports PEAR_Log if you referenc to a valid instance of it in self::getOption("usePEARLogInstance").
It logs a string according to error levels specified in array: self::$_logLevels (0 is fatal and handles daemon's death)
Parameters: