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 421 - Provides a demonstration session:// stream-wrapper.
Class
- FileExampleSessionStreamWrapper
- Example stream wrapper class to handle session:// streams.
Code
public function stream_stat() {
return array(
'size' => backdrop_strlen($this->sessionContent),
);
}