1 file_example_session_streams.inc public FileExampleSessionStreamWrapper::stream_close()

Support for fclose().

Return value

bool: TRUE if stream was successfully closed.

Overrides StreamWrapperInterface::stream_close

See also

http://php.net/manual/en/streamwrapper.stream-close.php

File

modules/examples/file_example/file_example_session_streams.inc, line 435
Provides a demonstration session:// stream-wrapper.

Class

FileExampleSessionStreamWrapper
Example stream wrapper class to handle session:// streams.

Code

public function stream_close() {
  $this->streamPointer = 0;
  // Unassign the reference.
  unset($this->sessionContent);

  return TRUE;
}