Skip navigation
Help

file_stream_wrapper_get_class

7 file.inc file_stream_wrapper_get_class($scheme)

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

4 calls to file_stream_wrapper_get_class()

File

drupal/includes/file.inc, line 186
API for handling file uploads and server file management.

Code

function file_stream_wrapper_get_class($scheme) {
  $wrappers = file_get_stream_wrappers();
  return empty($wrappers[$scheme]) ? FALSE : $wrappers[$scheme]['class'];
}