You are here

public static function vfsStream::umask in Zircon Profile 8.0

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

sets new umask setting and returns previous umask setting

If no value is given only the current umask setting is returned.

@since 0.8.0

Parameters

int $umask new umask setting:

Return value

int

14 calls to vfsStream::umask()
vfsStreamAbstractContent::__construct in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php
constructor
vfsStreamUmaskTestCase::changingUmaskSettingReturnsOldUmaskSetting in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php
@test
vfsStreamUmaskTestCase::createDirectoryUsingStreamWithDifferentUmaskSetting in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php
@test
vfsStreamUmaskTestCase::createDirectoryUsingStreamWithDifferentUmaskSettingButExplicit0777 in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php
@test
vfsStreamUmaskTestCase::createDirectoryUsingStreamWithDifferentUmaskSettingButExplicitModeRequestedByCall in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php
@test

... See full list

File

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

Class

vfsStream
Some utility methods for vfsStream.

Namespace

org\bovigo\vfs

Code

public static function umask($umask = null) {
  $oldUmask = self::$umask;
  if (null !== $umask) {
    self::$umask = $umask;
  }
  return $oldUmask;
}