class vfsStreamBlock in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamBlock.php \org\bovigo\vfs\vfsStreamBlock
Block container.
@api
Hierarchy
- class \org\bovigo\vfs\vfsStreamAbstractContent implements vfsStreamContent
- class \org\bovigo\vfs\vfsStreamFile
- class \org\bovigo\vfs\vfsStreamBlock
- class \org\bovigo\vfs\vfsStreamFile
Expanded class hierarchy of vfsStreamBlock
5 files declare their use of vfsStreamBlock
- vfsStreamAbstractVisitor.php in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamAbstractVisitor.php - vfsStreamAbstractVisitorTestCase.php in vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamAbstractVisitorTestCase.php - vfsStreamPrintVisitor.php in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamPrintVisitor.php - vfsStreamStructureVisitor.php in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamStructureVisitor.php - vfsStreamVisitor.php in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamVisitor.php
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamBlock.php, line 17
Namespace
org\bovigo\vfsView source
class vfsStreamBlock extends vfsStreamFile {
/**
* constructor
*
* @param string $name
* @param int $permissions optional
*/
public function __construct($name, $permissions = null) {
if (empty($name)) {
throw new vfsStreamException('Name of Block device was empty');
}
parent::__construct($name, $permissions);
$this->type = vfsStreamContent::TYPE_BLOCK;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
vfsStreamAbstractContent:: |
protected | property | owner group of the file | |
vfsStreamAbstractContent:: |
protected | property | timestamp of last access | |
vfsStreamAbstractContent:: |
protected | property | timestamp of last attribute modification | |
vfsStreamAbstractContent:: |
protected | property | timestamp of last modification | |
vfsStreamAbstractContent:: |
protected | property | name of the container | |
vfsStreamAbstractContent:: |
private | property | path to to this content | |
vfsStreamAbstractContent:: |
protected | property | permissions for content | |
vfsStreamAbstractContent:: |
protected | property | type of the container | |
vfsStreamAbstractContent:: |
protected | property | owner of the file | |
vfsStreamAbstractContent:: |
public | function |
adds content to given container Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
change owner group of file to given group Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
change file mode to given permissions Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
change owner of file to given user Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function | returns the last access time of the stream content | |
vfsStreamAbstractContent:: |
public | function | returns the last attribute modification time of the stream content | |
vfsStreamAbstractContent:: |
public | function |
returns the last modification time of the stream content Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
returns owner group of file Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
returns the file name of the content Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
returns permissions Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
returns the type of the container Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
returns owner of file Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
checks whether content is executable Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
checks whether file is owned by group Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
checks whether file is owned by given user Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
checks whether content is readable Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
checks whether content is writable Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function | sets last access time of the stream content | |
vfsStreamAbstractContent:: |
public | function | sets the last attribute modification time of the stream content | |
vfsStreamAbstractContent:: |
public | function |
sets the last modification time of the stream content Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
returns path to this content Overrides vfsStreamContent:: |
|
vfsStreamAbstractContent:: |
public | function |
renames the content Overrides vfsStreamContent:: |
1 |
vfsStreamAbstractContent:: |
public | function |
sets parent path Overrides vfsStreamContent:: |
1 |
vfsStreamAbstractContent:: |
public | function |
returns complete vfsStream url for this content Overrides vfsStreamContent:: |
|
vfsStreamBlock:: |
public | function |
constructor Overrides vfsStreamFile:: |
|
vfsStreamContent:: |
constant | stream content type: block | ||
vfsStreamContent:: |
constant | stream content type: directory | ||
vfsStreamContent:: |
constant | stream content type: file | ||
vfsStreamFile:: |
private | property | content of the file | |
vfsStreamFile:: |
protected | property | Resource id which exclusively locked this file | |
vfsStreamFile:: |
protected | property | Resources ids which currently holds shared lock to this file | |
vfsStreamFile:: |
protected | function | Add shared lock on file by given resource | |
vfsStreamFile:: |
public | function |
checks whether the container can be applied to given name Overrides vfsStreamAbstractContent:: |
|
vfsStreamFile:: |
public | function | checks whether pointer is at end of file | |
vfsStreamFile:: |
public | function | returns the current position within the file | |
vfsStreamFile:: |
public | function | returns the contents of the file | |
vfsStreamFile:: |
protected | function |
returns default permissions for concrete implementation Overrides vfsStreamAbstractContent:: |
|
vfsStreamFile:: |
public | function | Returns unique resource id | |
vfsStreamFile:: |
public | function | checks whether file is locked in exclusive mode | |
vfsStreamFile:: |
public | function | checks whether file is locked in shared mode | |
vfsStreamFile:: |
public | function | checks whether file is locked | |
vfsStreamFile:: |
public | function | locks file for | |
vfsStreamFile:: |
public | function | simply open the file | |
vfsStreamFile:: |
public | function | open file and set pointer to end of file | |
vfsStreamFile:: |
public | function | open file and truncate content | |
vfsStreamFile:: |
public | function | reads the given amount of bytes from content | |
vfsStreamFile:: |
public | function | returns the content until its end from current offset | |
vfsStreamFile:: |
public | function | seeks to the given offset | |
vfsStreamFile:: |
public | function | alias for withContent() | |
vfsStreamFile:: |
protected | function | Set exlusive lock on file by given resource | |
vfsStreamFile:: |
public | function |
returns size of content Overrides vfsStreamContent:: |
|
vfsStreamFile:: |
public | function | Truncates a file to a given length | |
vfsStreamFile:: |
public | function | Removes lock from file acquired by given resource | |
vfsStreamFile:: |
public | function | sets the contents of the file | |
vfsStreamFile:: |
public | function | writes an amount of data |