function emapi_get_provider_class in Embedded Media Field 6.3
Returns the registered class for a specific provider.
Parameters
string $uri: A stream, referenced as "scheme://target".
Return value
string The registered class, or NULL if it's an unsupported URI.
3 calls to emapi_get_provider_class()
- emapi_media_from_db_result in emapi/
emapi.module - Create a new media object from a db result.
- emapi_media_from_uri in emapi/
emapi.module - Loads a media object based on the given URI.
- emfield_field in ./
emfield.module - Implementation of hook_field().
File
- emapi/
emapi.module, line 200 - Provides an API for parsing, storage, and display of third party media.
Code
function emapi_get_provider_class($uri) {
$class = emapi_get_provider_classes(emapi_uri_scheme($uri));
if (is_array($class) && $class['class_name']) {
return $class['class_name'];
}
}