DrupalStreamWrapperInterface::dirname
public function DrupalStreamWrapperInterface::dirname
public DrupalStreamWrapperInterface::dirname($uri = NULL)
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.
See also
File
- includes/stream_wrappers.inc, line 219
- Drupal stream wrapper interface.
Class
- DrupalStreamWrapperInterface
- Drupal stream wrapper extension.
Code
public function dirname($uri = NULL);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!stream_wrappers.inc/function/DrupalStreamWrapperInterface::dirname/7.x