Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: