function xautoload_Plugin_checkIncludePath::findFile in X Autoload 7.2
Expect a class Aaa_Bbb_Ccc_Ddd to be in Aaa/Bbb/Ccc/Ddd.php, but consider the PHP include_path setting.
Parameters
object $api: The InjectedAPI object.
string $path_prefix_symbolic: First part of the path, for instance "Aaa/Bbb/".
string $path_suffix: Second part of the path, for instance "Ccc/Ddd.php".
Overrides xautoload_Plugin_Interface::findFile
File
- lib/
Plugin/ checkIncludePath.php, line 21
Class
- xautoload_Plugin_checkIncludePath
- This class is not used anywhere in xautoload, but could be used by other modules.
Code
function findFile($api, $path_prefix_symbolic, $path_suffix) {
$path = $path_prefix_symbolic . $path_suffix;
if ($api
->suggestFile_checkIncludePath($path)) {
return TRUE;
}
}