You are here

public function vfsStreamWrapper::dir_readdir in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php \org\bovigo\vfs\vfsStreamWrapper::dir_readdir()

reads directory contents

Return value

string

1 call to vfsStreamWrapper::dir_readdir()
vfsStreamWrapperRecordingProxy::dir_readdir in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/proxy/vfsStreamWrapperRecordingProxy.php
reads directory contents
1 method overrides vfsStreamWrapper::dir_readdir()
vfsStreamWrapperRecordingProxy::dir_readdir in vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/proxy/vfsStreamWrapperRecordingProxy.php
reads directory contents

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php, line 945

Class

vfsStreamWrapper
Stream wrapper to mock file system requests.

Namespace

org\bovigo\vfs

Code

public function dir_readdir() {
  $dir = $this->dirIterator
    ->current();
  if (null === $dir) {
    return false;
  }
  $this->dirIterator
    ->next();
  return $dir
    ->getName();
}