Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
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: