1 file_example_session_streams.inc public FileExampleSessionStreamWrapper::stream_flush()

Support for fflush().

Return value

bool: TRUE if data was successfully stored (or there was no data to store). This always returns TRUE, as this example provides and needs no flush support.

Overrides StreamWrapperInterface::stream_flush

See also

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

File

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

Class

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

Code

public function stream_flush() {
  return TRUE;
}