function SessionStreamWrapper::dir_readdir
Support for readdir().
Return value
string|bool The next filename, or FALSE if there are no more files in the directory.
Overrides PhpStreamWrapperInterface::dir_readdir
See also
http://php.net/manual/en/streamwrapper.dir-readdir.php
File
-
modules/
stream_wrapper_example/ src/ StreamWrapper/ SessionStreamWrapper.php, line 834
Class
- SessionStreamWrapper
- Example stream wrapper class to handle session:// streams.
Namespace
Drupal\stream_wrapper_example\StreamWrapperCode
public function dir_readdir() {
// @codingStandardsIgnoreEnd
if ($this->directoryPointer < count($this->directoryKeys)) {
$next = $this->directoryKeys[$this->directoryPointer];
$this->directoryPointer++;
return $next;
}
return FALSE;
}