abstract class StreamWrapperBase in System stream wrapper 8
Provides a base class for all stream wrappers.
Hierarchy
- class \Drupal\system_stream_wrapper\StreamWrapper\StreamWrapperBase implements StreamWrapperInterface
Expanded class hierarchy of StreamWrapperBase
File
- src/
StreamWrapper/ StreamWrapperBase.php, line 10
Namespace
Drupal\system_stream_wrapper\StreamWrapperView source
abstract class StreamWrapperBase implements StreamWrapperInterface {
/**
* Stream context resource.
*
* @var resource
*/
public $context;
/**
* A generic resource handle.
*
* @var resource
*/
public $handle = NULL;
/**
* Instance URI (stream).
*
* A stream is referenced as "scheme://target".
*
* @var string
*/
protected $uri;
/**
* {@inheritdoc}
*/
function setUri($uri) {
if (strpos($uri, '://') === FALSE) {
// The delimiter ('://') was not found in $uri, malformed $uri passed.
throw new \InvalidArgumentException("Malformed uri parameter passed: {$this->uri}");
}
$this->uri = $uri;
}
/**
* {@inheritdoc}
*/
function getUri() {
return $this->uri;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PhpStreamWrapperInterface:: |
public | function | 1 | |
PhpStreamWrapperInterface:: |
public | function | 1 | |
PhpStreamWrapperInterface:: |
public | function | 1 | |
PhpStreamWrapperInterface:: |
public | function | 1 | |
PhpStreamWrapperInterface:: |
public | function | 2 | |
PhpStreamWrapperInterface:: |
public | function | 2 | |
PhpStreamWrapperInterface:: |
public | function | 2 | |
PhpStreamWrapperInterface:: |
public | function | Retrieve the underlying stream resource. | 1 |
PhpStreamWrapperInterface:: |
public | function | Closes stream. | 1 |
PhpStreamWrapperInterface:: |
public | function | 1 | |
PhpStreamWrapperInterface:: |
public | function | 2 | |
PhpStreamWrapperInterface:: |
public | function | 2 | |
PhpStreamWrapperInterface:: |
public | function | Sets metadata on the stream. | 2 |
PhpStreamWrapperInterface:: |
public | function | 2 | |
PhpStreamWrapperInterface:: |
public | function | 1 | |
PhpStreamWrapperInterface:: |
public | function | Seeks to specific location in a stream. | 1 |
PhpStreamWrapperInterface:: |
public | function | Change stream options. | 1 |
PhpStreamWrapperInterface:: |
public | function | 1 | |
PhpStreamWrapperInterface:: |
public | function | 1 | |
PhpStreamWrapperInterface:: |
public | function | Truncate stream. | 2 |
PhpStreamWrapperInterface:: |
public | function | 2 | |
PhpStreamWrapperInterface:: |
public | function | 2 | |
PhpStreamWrapperInterface:: |
public | function | 1 | |
StreamWrapperBase:: |
public | property | Stream context resource. | |
StreamWrapperBase:: |
public | property | A generic resource handle. | |
StreamWrapperBase:: |
protected | property | Instance URI (stream). | |
StreamWrapperBase:: |
function |
Returns the stream resource URI. Overrides StreamWrapperInterface:: |
||
StreamWrapperBase:: |
function |
Sets the absolute stream resource URI. Overrides StreamWrapperInterface:: |
||
StreamWrapperInterface:: |
constant | A filter that matches all wrappers. | ||
StreamWrapperInterface:: |
public | function | Gets the name of the directory from a given path. | 1 |
StreamWrapperInterface:: |
public | function | Returns the description of the stream wrapper for use in the UI. | 6 |
StreamWrapperInterface:: |
public | function | Returns a web accessible URL for the resource. | 6 |
StreamWrapperInterface:: |
public | function | Returns the name of the stream wrapper for use in the UI. | 6 |
StreamWrapperInterface:: |
public static | function | Returns the type of stream wrapper. | 1 |
StreamWrapperInterface:: |
constant | Defines the stream wrapper bit flag for a hidden file. | ||
StreamWrapperInterface:: |
constant | Refers to a local file system location. | ||
StreamWrapperInterface:: |
constant | Hidden, readable and writable using local files. | ||
StreamWrapperInterface:: |
constant | Visible, readable and writable using local files. | ||
StreamWrapperInterface:: |
constant | This is the default 'type' flag. This does not include StreamWrapperInterface::LOCAL, because PHP grants a greater trust level to local files (for example, they can be used in an "include" statement, regardless of the… | ||
StreamWrapperInterface:: |
constant | Wrapper is readable (almost always true). | ||
StreamWrapperInterface:: |
constant | Visible and read-only. | ||
StreamWrapperInterface:: |
public | function | Returns canonical, absolute path of the resource. | 1 |
StreamWrapperInterface:: |
constant | Exposed in the UI and potentially web accessible. | ||
StreamWrapperInterface:: |
constant | Wrapper is writable. | ||
StreamWrapperInterface:: |
constant | Visible, readable and writable. |