You are here

public static function vfsStream::newBlock in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStream.php \org\bovigo\vfs\vfsStream::newBlock()

returns a new block with the given name

Parameters

string $name name of the block device:

int $permissions permissions of block to create:

Return value

vfsStreamBlock

2 calls to vfsStream::newBlock()
vfsStreamBlockTestCase::external in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamBlockTestCase.php
tests how external functions see this object
vfsStreamPrintVisitorTestCase::visitFileWritesBlockDeviceToStream in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitorTestCase.php
@test

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStream.php, line 363

Class

vfsStream
Some utility methods for vfsStream.

Namespace

org\bovigo\vfs

Code

public static function newBlock($name, $permissions = null) {
  return new vfsStreamBlock($name, $permissions);
}