/** If the class does not exist, try to include a PntRequestHanlder.
* For each class name inclusion is first tried from $thisfunction (->(),
* If the class is not found, a class from the classes root folder is tried
* @param string $handlerClass name of the class
* @param array $attempted to add info to about the class names and folders that where tried
* @return boolean wheather a class file was included. Also true if the class already existed.
*/
function tryUseHandlerClass($handlerClass, &$attempted) {
$attempted = array_merge($attempted, $this->($handlerClass, $this->()));
$included = $this->($handlerClass, $this->());
return $included ? $handlerClass : null;
}
|