protected function generate_filepath($dir, $class_path)
{
$file = $dir . $class_path . '.php';
if (file_exists($file)) {
return $file;
}
$file = $dir . $class_path . '.inc';
if (file_exists($file)) {
return $file;
}
$file = $dir . $class_path . '.class';
if (file_exists($file)) {
return $file;
}
return false;
}