Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

File Size: 470 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

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

return: void

processStream(StreamInterface $stream)   X-Ref
No description

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

return: string

getTotalLength()   X-Ref

return: Bigint

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

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