Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(no description)

File Size: 477 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: File  - X-Ref

__construct(ZipStream $zip, string $name, ?FileOptions $opt = null)   X-Ref


processPath(string $path)   X-Ref
No description

processData(string $data)   X-Ref
No description

addFileHeader()   X-Ref
Create and send zip header for this file.

return: void

filterFilename(string $filename)   X-Ref
Strip characters that are not legal in Windows filenames
to prevent compatibility issues

param: string $filename Unprocessed filename
return: string

dosTime(int $when)   X-Ref
Convert a UNIX timestamp to a DOS timestamp.

param: int $when
return: int DOS Timestamp

buildZip64ExtraBlock(bool $force = false)   X-Ref
No description

addFileFooter()   X-Ref
Create and send data descriptor footer for this file.

return: void

processStream(StreamInterface $stream)   X-Ref
No description

processStreamWithZeroHeader(StreamInterface $stream)   X-Ref
No description

readStream(StreamInterface $stream, ?int $options = null)   X-Ref
No description

deflateInit()   X-Ref
No description

deflateData(StreamInterface $stream, string &$data, ?int $options = null)   X-Ref
No description

deflateFinish(?int $options = null)   X-Ref
No description

processStreamWithComputedHeader(StreamInterface $stream)   X-Ref
No description

getCdrFile()   X-Ref
Send CDR record for specified file.

return: string

getTotalLength()   X-Ref

return: Bigint