You are here

public function vfsStreamAbstractContent::__construct in Zircon Profile 8.0

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

constructor

Parameters

string $name:

int $permissions optional:

2 calls to 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
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();
}