1 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

File

core/includes/file.inc, line 181
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'];
}