TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\Utility\CompressionUtility Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Utility\CompressionUtility:
TYPO3\CMS\Core\SingletonInterface tslib_fecompression

Public Member Functions

 compressionOutputHandler ($outputBuffer, $mode)
 

Protected Attributes

 $contentLength = 0
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! This class contains compression functions for the TYPO3 Frontend. It can be used only in EXT:cms/tslib/index_ts.php

Author
Dmitry Dulepov dmitr.nosp@m.y@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 22 of file CompressionUtility.php.

Member Function Documentation

◆ compressionOutputHandler()

TYPO3\CMS\Frontend\Utility\CompressionUtility::compressionOutputHandler (   $outputBuffer,
  $mode 
)

Corrects HTTP "Content-length" header if it was sent by TYPO3 and compression is enabled.

Parameters
string$outputBufferOutput buffer to compress
integer$modeOne of PHP_OUTPUT_HANDLER_xxx constants
Returns
string Compressed string
See also
ob_start()
ob_gzhandler()
Todo:
Define visibility

Definition at line 44 of file CompressionUtility.php.

Member Data Documentation

◆ $contentLength

TYPO3\CMS\Frontend\Utility\CompressionUtility::$contentLength = 0
protected

Definition at line 31 of file CompressionUtility.php.