You are here

function ResourceStreamWrapperManager::scheme in D7 Media 6

Return the stream class name for a given scheme.

Parameters

string $scheme stream scheme.:

Return value

mixed string is a scheme has a registered handler or FALSE.

File

resource/ResourceStreamWrapperManager.inc, line 66

Class

ResourceStreamWrapperManager
The StreamWrapperManager provides a class for managing and querying user defined stream wrappers in PHP. PHP's internal stream_get_wrappers doesn't return the class registered to handle a stream. We need to be able to find the handler class…

Code

function scheme($class) {
  return array_search(self::$this->wrappers, $class);
}