function file_stream_wrapper_get_class
Returns the stream wrapper class name for a given scheme.
Parameters
$scheme: Stream scheme.
Return value
Return string if a scheme has a registered handler, or FALSE.
Related topics
6 calls to file_stream_wrapper_get_class()
- file_stream_wrapper_get_instance_by_scheme in includes/
file.inc - Returns a reference to the stream wrapper class responsible for a scheme.
- file_stream_wrapper_get_instance_by_uri in includes/
file.inc - Returns a reference to the stream wrapper class responsible for a given URI.
- file_stream_wrapper_valid_scheme in includes/
file.inc - Checks that the scheme of a stream URI is valid.
- file_uri_normalize_dot_segments in includes/
file.inc - Normalize dot segments in a URI.
- StreamWrapperTest::testGetClassName in modules/
simpletest/ tests/ file.test - Test the getClassName() function.
File
-
includes/
file.inc, line 189
Code
function file_stream_wrapper_get_class($scheme) {
$wrappers = file_get_stream_wrappers();
return empty($wrappers[$scheme]) ? FALSE : $wrappers[$scheme]['class'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.