Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: