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

Breadcrumb

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

function vfsStreamWrapper::stream_stat

returns status of stream

Return value

array

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php, line 653

Class

vfsStreamWrapper
Stream wrapper to mock file system requests.

Namespace

org\bovigo\vfs

Code

public function stream_stat() {
    $fileStat = array(
        'dev' => 0,
        'ino' => 0,
        'mode' => $this->content
            ->getType() | $this->content
            ->getPermissions(),
        'nlink' => 0,
        'uid' => $this->content
            ->getUser(),
        'gid' => $this->content
            ->getGroup(),
        'rdev' => 0,
        'size' => $this->content
            ->size(),
        'atime' => $this->content
            ->fileatime(),
        'mtime' => $this->content
            ->filemtime(),
        'ctime' => $this->content
            ->filectime(),
        'blksize' => -1,
        'blocks' => -1,
    );
    return array_merge(array_values($fileStat), $fileStat);
}

API Navigation

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