You are here

function ResourceStreamWrapperManager::classname in D7 Media 6

Return the streamwrapper classname 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 54

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 classname($scheme) {
  if (empty(self::$this->wrappers[$scheme])) {
    return FALSE;
  }
  return self::$this->wrappers[$scheme];
}