class vfsStreamBlock
Block container.
@api
Hierarchy
- class \org\bovigo\vfs\vfsStreamAbstractContent implements \org\bovigo\vfs\vfsStreamContent
- class \org\bovigo\vfs\vfsStreamFile extends \org\bovigo\vfs\vfsStreamAbstractContent
- class \org\bovigo\vfs\vfsStreamBlock extends \org\bovigo\vfs\vfsStreamFile
- class \org\bovigo\vfs\vfsStreamFile extends \org\bovigo\vfs\vfsStreamAbstractContent
Expanded class hierarchy of vfsStreamBlock
4 files declare their use of vfsStreamBlock
- vfsStreamAbstractVisitor.php in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamAbstractVisitor.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
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|---|
vfsStreamAbstractContent::$group | protected | property | owner group of the file | |||
vfsStreamAbstractContent::$lastAccessed | protected | property | timestamp of last access | |||
vfsStreamAbstractContent::$lastAttributeModified | protected | property | timestamp of last attribute modification | |||
vfsStreamAbstractContent::$lastModified | protected | property | timestamp of last modification | |||
vfsStreamAbstractContent::$name | protected | property | name of the container | |||
vfsStreamAbstractContent::$parentPath | private | property | path to to this content | |||
vfsStreamAbstractContent::$permissions | protected | property | permissions for content | |||
vfsStreamAbstractContent::$type | protected | property | type of the container | |||
vfsStreamAbstractContent::$user | protected | property | owner of the file | |||
vfsStreamAbstractContent::at | public | function | adds content to given container | Overrides vfsStreamContent::at | ||
vfsStreamAbstractContent::chgrp | public | function | change owner group of file to given group | Overrides vfsStreamContent::chgrp | ||
vfsStreamAbstractContent::chmod | public | function | change file mode to given permissions | Overrides vfsStreamContent::chmod | ||
vfsStreamAbstractContent::chown | public | function | change owner of file to given user | Overrides vfsStreamContent::chown | ||
vfsStreamAbstractContent::fileatime | public | function | returns the last access time of the stream content | |||
vfsStreamAbstractContent::filectime | public | function | returns the last attribute modification time of the stream content | |||
vfsStreamAbstractContent::filemtime | public | function | returns the last modification time of the stream content | Overrides vfsStreamContent::filemtime | ||
vfsStreamAbstractContent::getGroup | public | function | returns owner group of file | Overrides vfsStreamContent::getGroup | ||
vfsStreamAbstractContent::getName | public | function | returns the file name of the content | Overrides vfsStreamContent::getName | ||
vfsStreamAbstractContent::getPermissions | public | function | returns permissions | Overrides vfsStreamContent::getPermissions | ||
vfsStreamAbstractContent::getType | public | function | returns the type of the container | Overrides vfsStreamContent::getType | ||
vfsStreamAbstractContent::getUser | public | function | returns owner of file | Overrides vfsStreamContent::getUser | ||
vfsStreamAbstractContent::isExecutable | public | function | checks whether content is executable | Overrides vfsStreamContent::isExecutable | ||
vfsStreamAbstractContent::isOwnedByGroup | public | function | checks whether file is owned by group | Overrides vfsStreamContent::isOwnedByGroup | ||
vfsStreamAbstractContent::isOwnedByUser | public | function | checks whether file is owned by given user | Overrides vfsStreamContent::isOwnedByUser | ||
vfsStreamAbstractContent::isReadable | public | function | checks whether content is readable | Overrides vfsStreamContent::isReadable | ||
vfsStreamAbstractContent::isWritable | public | function | checks whether content is writable | Overrides vfsStreamContent::isWritable | ||
vfsStreamAbstractContent::lastAccessed | public | function | sets last access time of the stream content | |||
vfsStreamAbstractContent::lastAttributeModified | public | function | sets the last attribute modification time of the stream content | |||
vfsStreamAbstractContent::lastModified | public | function | sets the last modification time of the stream content | Overrides vfsStreamContent::lastModified | ||
vfsStreamAbstractContent::path | public | function | returns path to this content | Overrides vfsStreamContent::path | ||
vfsStreamAbstractContent::rename | public | function | renames the content | Overrides vfsStreamContent::rename | 1 | |
vfsStreamAbstractContent::setParentPath | public | function | sets parent path | Overrides vfsStreamContent::setParentPath | 1 | |
vfsStreamAbstractContent::url | public | function | returns complete vfsStream url for this content | Overrides vfsStreamContent::url | ||
vfsStreamBlock::__construct | public | function | constructor | Overrides vfsStreamFile::__construct | ||
vfsStreamContent::TYPE_BLOCK | constant | stream content type: block | ||||
vfsStreamContent::TYPE_DIR | constant | stream content type: directory | ||||
vfsStreamContent::TYPE_FILE | constant | stream content type: file | ||||
vfsStreamFile::$content | private | property | content of the file | |||
vfsStreamFile::$exclusiveLock | protected | property | Resource id which exclusively locked this file | |||
vfsStreamFile::$sharedLock | protected | property | Resources ids which currently holds shared lock to this file | |||
vfsStreamFile::addSharedLock | protected | function | Add shared lock on file by given resource | |||
vfsStreamFile::appliesTo | public | function | checks whether the container can be applied to given name | Overrides vfsStreamAbstractContent::appliesTo | ||
vfsStreamFile::eof | public | function | checks whether pointer is at end of file | |||
vfsStreamFile::getBytesRead | Deprecated | public | function | returns the current position within the file | ||
vfsStreamFile::getContent | public | function | returns the contents of the file | |||
vfsStreamFile::getDefaultPermissions | protected | function | returns default permissions for concrete implementation | Overrides vfsStreamAbstractContent::getDefaultPermissions | ||
vfsStreamFile::getResourceId | public | function | Returns unique resource id | |||
vfsStreamFile::hasExclusiveLock | public | function | checks whether file is locked in exclusive mode | |||
vfsStreamFile::hasSharedLock | public | function | checks whether file is locked in shared mode | |||
vfsStreamFile::isLocked | public | function | checks whether file is locked | |||
vfsStreamFile::lock | public | function | locks file for | |||
vfsStreamFile::open | public | function | simply open the file | |||
vfsStreamFile::openForAppend | public | function | open file and set pointer to end of file | |||
vfsStreamFile::openWithTruncate | public | function | open file and truncate content | |||
vfsStreamFile::read | public | function | reads the given amount of bytes from content | |||
vfsStreamFile::readUntilEnd | Deprecated | public | function | returns the content until its end from current offset | ||
vfsStreamFile::seek | public | function | seeks to the given offset | |||
vfsStreamFile::setContent | public | function | alias for withContent() | |||
vfsStreamFile::setExclusiveLock | protected | function | Set exlusive lock on file by given resource | |||
vfsStreamFile::size | public | function | returns size of content | Overrides vfsStreamContent::size | ||
vfsStreamFile::truncate | public | function | Truncates a file to a given length | |||
vfsStreamFile::unlock | public | function | Removes lock from file acquired by given resource | |||
vfsStreamFile::withContent | public | function | sets the contents of the file | |||
vfsStreamFile::write | public | function | writes an amount of data |