| Versions | |
|---|---|
| 7 | file_stream_wrapper_get_class($scheme) |
Returns the stream wrapper class name for a given scheme.
$scheme Stream scheme.
Return string if a scheme has a registered handler, or FALSE.
drupal/
<?php
function file_stream_wrapper_get_class($scheme) {
$wrappers = file_get_stream_wrappers();
return empty($wrappers[$scheme]) ? FALSE : $wrappers[$scheme]['class'];
}
?>