You are here

public function MediaReadOnlyStreamWrapper::dirname in D7 Media 7

Same name and namespace in other branches
  1. 7.4 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::dirname()
  2. 7.2 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::dirname()
  3. 7.3 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::dirname()

Gets the name of the directory from a given path.

This method is usually accessed through drupal_dirname(), which wraps around the normal PHP dirname() function, which does not support stream wrappers.

Parameters

$uri: An optional URI.

Return value

A string containing the directory name, or FALSE if not applicable.

Overrides DrupalStreamWrapperInterface::dirname

See also

drupal_dirname()

File

includes/MediaReadOnlyStreamWrapper.inc, line 490

Class

MediaReadOnlyStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function dirname($uri = NULL) {
  return FALSE;
}