Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: