protected function xautoload_ClassFinder_Prefix::prefixPathFragment in X Autoload 7.3
Convert the underscores of a prefix into directory separators.
Parameters
string $prefix: Prefix, without trailing underscore.
Return value
string Path fragment representing the prefix, with trailing DIRECTORY_SEPARATOR.
5 calls to xautoload_ClassFinder_Prefix::prefixPathFragment()
- xautoload_ClassFinder_Prefix::registerPrefixDeepLocation in lib/
ClassFinder/ Prefix.php - Register a filesystem location for a given class prefix.
- xautoload_ClassFinder_Prefix::registerPrefixesDeep in lib/
ClassFinder/ Prefix.php - Register an array of PEAR-style deep paths for given class prefixes.
- xautoload_ClassFinder_Prefix::registerPrefixesRoot in lib/
ClassFinder/ Prefix.php - Register an array of PEAR-style deep paths for given class prefixes.
- xautoload_ClassFinder_Prefix::registerPrefixPlugin in lib/
ClassFinder/ Prefix.php - Register a plugin for a prefix.
- xautoload_ClassFinder_Prefix::registerPrefixRoot in lib/
ClassFinder/ Prefix.php - Register a PEAR-style root path for a given class prefix.
File
- lib/
ClassFinder/ Prefix.php, line 254
Class
Code
protected function prefixPathFragment($prefix) {
return strlen($prefix) ? str_replace('_', DIRECTORY_SEPARATOR, rtrim($prefix, '_') . '_') : '';
}