Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Gzdecode Class Reference

Decode 'gzip' encoded HTTP data. More...

Public Member Functions

 __construct ($data)
 Set the compressed string and related properties.
 
 __set ($name, $value)
 Don't allow anything to be set.
 
 parse ()
 Decode the GZIP stream.
 

Public Attributes

string $comment
 Human readable comment.
 
string $compressed_data
 Compressed data.
 
int $compressed_size
 Size of compressed data.
 
string $data
 Uncompressed data.
 
string $extra_field
 Extra field content.
 
string $filename
 Original filename.
 
int $flags
 Flags (FLG)
 
int $min_compressed_size = 18
 Minimum size of a valid gzip string.
 
int $MTIME
 Modified time.
 
int $OS
 Operating System.
 
int $position = 0
 Current position of pointer.
 
string $SI1
 Subfield ID 1.
 
string $SI2
 Subfield ID 2.
 
int $XFL
 Extra Flags.
 

Detailed Description

Decode 'gzip' encoded HTTP data.

@subpackage HTTP @externalurl http://www.gzip.org/format.txt

Constructor & Destructor Documentation

◆ __construct()

Gzdecode::__construct ( $data)

Set the compressed string and related properties.

Parameters
string$data

Member Function Documentation

◆ __set()

Gzdecode::__set ( $name,
$value )

Don't allow anything to be set.

Parameters
string$name
mixed$value

◆ parse()

Gzdecode::parse ( )

Decode the GZIP stream.

Return values
boolSuccessfulness

Member Data Documentation

◆ $compressed_data

string Gzdecode::$compressed_data

Compressed data.

See also
gzdecode\$data

◆ $data

string Gzdecode::$data

Uncompressed data.

See also
gzdecode\$compressed_data

◆ $extra_field

string Gzdecode::$extra_field

Extra field content.

See also
gzdecode\$SI1
gzdecode\$SI2

◆ $SI1

string Gzdecode::$SI1

Subfield ID 1.

See also
gzdecode\$extra_field
gzdecode\$SI2

◆ $SI2

string Gzdecode::$SI2

Subfield ID 2.

See also
gzdecode\$extra_field
gzdecode\$SI1

The documentation for this class was generated from the following file: