Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. vfsStream.php

function 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

2 calls to vfsStream::umask()
vfsStreamAbstractContent::__construct in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php
constructor
vfsStreamWrapper::mkdir in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
creates a new directory

File

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

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal