LocalStream::setUri

LocalStream::setUri($uri) Sets the absolute stream resource URI. This allows you to set the URI. Generally is only called by the factory method. Parameters string $uri: A string containing the URI that should be used for this instance. Overrides StreamWrapperInterface::setUri File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 60 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code function setUri($uri) { $t

LocalStream::rmdir

public LocalStream::rmdir($uri, $options) Support for rmdir(). Parameters string $uri: A string containing the URI to the directory to delete. int $options: A bit mask of STREAM_REPORT_ERRORS. Return value bool TRUE if directory was successfully removed. Overrides PhpStreamWrapperInterface::rmdir See also http://php.net/manual/streamwrapper.rmdir.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 471 Class LocalStream Defines a Drupal stream wrapper base class for local f

LocalStream::rename

public LocalStream::rename($from_uri, $to_uri) Support for rename(). Parameters string $from_uri,: The URI to the file to rename. string $to_uri: The new URI for file. Return value bool TRUE if file was successfully renamed. Overrides PhpStreamWrapperInterface::rename See also http://php.net/manual/streamwrapper.rename.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 393 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Co

LocalStream::realpath

LocalStream::realpath() Returns canonical, absolute path of the resource. Implementation placeholder. PHP's realpath() does not support stream wrappers. We provide this as a default so that individual wrappers may implement their own solutions. Return value string Returns a string with absolute pathname on success (implemented by core wrappers), or FALSE on failure or if the registered wrapper does not provide an implementation. Overrides StreamWrapperInterface::realpath File core/lib/Drupal/C

LocalStream::mkdir

public LocalStream::mkdir($uri, $mode, $options) Support for mkdir(). Parameters string $uri: A string containing the URI to the directory to create. int $mode: Permission flags - see mkdir(). int $options: A bit mask of STREAM_REPORT_ERRORS and STREAM_MKDIR_RECURSIVE. Return value bool TRUE if directory was successfully created. Overrides PhpStreamWrapperInterface::mkdir See also http://php.net/manual/streamwrapper.mkdir.php File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 439

LocalStream::getUri

LocalStream::getUri() Returns the stream resource URI. Return value string Returns the current URI of the instance. Overrides StreamWrapperInterface::getUri File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 67 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code function getUri() { return $this->uri; }

LocalStream::getType

public static LocalStream::getType() Returns the type of stream wrapper. Return value int Overrides StreamWrapperInterface::getType File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 43 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code public static function getType() { return StreamWrapperInterface::NORMAL; }

LocalStream::getTarget

protected LocalStream::getTarget($uri = NULL) Returns the local writable target of the resource within the stream. This function should be used in place of calls to realpath() or similar functions when attempting to determine the location of a file. While functions like realpath() may return the location of a read-only file, this method may return a URI or path suitable for writing that is completely separate from the URI used for reading. Parameters string $uri: Optional URI. Return value st

LocalStream::getLocalPath

protected LocalStream::getLocalPath($uri = NULL) Returns the canonical absolute path of the URI, if possible. Parameters string $uri: (optional) The stream wrapper URI to be converted to a canonical absolute path. This may point to a directory or another type of file. Return value string|bool If $uri is not set, returns the canonical absolute path of the URI previously set by the Drupal\Core\StreamWrapper\StreamWrapperInterface::setUri() function. If $uri is set and valid for this class, retu

LocalStream::getDirectoryPath

abstract LocalStream::getDirectoryPath() Gets the path that the wrapper is responsible for. @todo Review this method name in D8 per https://www.drupal.org/node/701358. Return value string String specifying the path. File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 55 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code abstract function getDirectoryPath();