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

Breadcrumb

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

function vfsStream::getCurrentUser

returns current user

If the system does not support posix_getuid() the current user will be root (0).

Return value

int

12 calls to vfsStream::getCurrentUser()
vfsStreamAbstractContent::__construct in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php
constructor
vfsStreamWrapper::createFile in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
creates a file at given path
vfsStreamWrapper::dir_opendir in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
opens a directory
vfsStreamWrapper::doPermChange in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
executes given permission change when necessary rights allow such a change
vfsStreamWrapper::doUnlink in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
removes a path

... See full list

File

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

Class

vfsStream
Some utility methods for vfsStream.

Namespace

org\bovigo\vfs

Code

public static function getCurrentUser() {
    return function_exists('posix_getuid') ? posix_getuid() : self::OWNER_ROOT;
}

API Navigation

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