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

Breadcrumb

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

function vfsStreamAbstractContent::__construct

constructor

Parameters

string $name:

int $permissions optional:

4 calls to vfsStreamAbstractContent::__construct()
vfsStreamDirectory::__construct in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php
constructor
vfsStreamDirectory::__construct in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php
constructor
vfsStreamFile::__construct in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamFile.php
constructor
vfsStreamFile::__construct in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamFile.php
constructor
2 methods override vfsStreamAbstractContent::__construct()
vfsStreamDirectory::__construct in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php
constructor
vfsStreamFile::__construct in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamFile.php
constructor

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php, line 77

Class

vfsStreamAbstractContent
Base stream contents container.

Namespace

org\bovigo\vfs

Code

public function __construct($name, $permissions = null) {
    $this->name = "{$name}";
    $time = time();
    if (null === $permissions) {
        $permissions = $this->getDefaultPermissions() & ~vfsStream::umask();
    }
    $this->lastAccessed = $time;
    $this->lastAttributeModified = $time;
    $this->lastModified = $time;
    $this->permissions = $permissions;
    $this->user = vfsStream::getCurrentUser();
    $this->group = vfsStream::getCurrentGroup();
}

API Navigation

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