public function SessionStreamWrapper::dir_closedir in Examples for Developers 3.x
Same name and namespace in other branches
- 8 stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php \Drupal\stream_wrapper_example\StreamWrapper\SessionStreamWrapper::dir_closedir()
Close directory handle.
This method is called in response to closedir(). Any resources which were locked, or allocated, during opening and use of the directory stream should be released.
Return value
bool Returns TRUE on success or FALSE on failure.
Overrides PhpStreamWrapperInterface::dir_closedir
See also
closedir()
http://php.net/manual/en/streamwrapper.dir-closedir.php
File
- modules/
stream_wrapper_example/ src/ StreamWrapper/ SessionStreamWrapper.php, line 868
Class
- SessionStreamWrapper
- Example stream wrapper class to handle session:// streams.
Namespace
Drupal\stream_wrapper_example\StreamWrapperCode
public function dir_closedir() {
// @codingStandardsIgnoreEnd
$this->directoryPointer = 0;
unset($this->directoryKeys);
return TRUE;
}