1 file_example_session_streams.inc public FileExampleSessionStreamWrapper::stream_stat()

Support for fstat().

Return value

array An array with file status, or FALSE in case of an error - see fstat() for a description of this array.

Overrides StreamWrapperInterface::stream_stat

See also

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

File

modules/examples/file_example/file_example_session_streams.inc, line 414
Provides a demonstration session:// streamwrapper.

Class

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

Code

public function stream_stat() {
  return array(
    'size' => backdrop_strlen($this->sessionContent),
  );
}