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

Class for handling zlib/deflate encoded data. More...

Inheritance diagram for Flate:
FilterInterface

Public Member Functions

 decode ($data)
 Decodes a flate compressed string.
 

Protected Member Functions

 extensionLoaded ()
 Checks whether the zlib extension is loaded.
 

Detailed Description

Class for handling zlib/deflate encoded data.

Member Function Documentation

◆ decode()

Flate::decode ( $data)

Decodes a flate compressed string.

Parameters
string | false$dataThe input string
Return values
string
Exceptions
FlateException

Implements FilterInterface.

◆ extensionLoaded()

Flate::extensionLoaded ( )
protected

Checks whether the zlib extension is loaded.

Used for testing purpose.

Return values
boolean

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