‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Service\Archive\ZipService Class Reference

Public Member Functions

 extract (string $fileName, string $directory)
 
 verify (string $fileName)
 

Private Member Functions

 assertDirectoryIsWritable (string $directory)
 

Detailed Description

Service that handles zip creation and extraction

Definition at line 28 of file ZipService.php.

Member Function Documentation

◆ assertDirectoryIsWritable()

TYPO3\CMS\Core\Service\Archive\ZipService::assertDirectoryIsWritable ( string  $directory)
private

Definition at line 86 of file ZipService.php.

Referenced by TYPO3\CMS\Core\Service\Archive\ZipService\extract().

◆ extract()

TYPO3\CMS\Core\Service\Archive\ZipService::extract ( string  $fileName,
string  $directory 
)

Extracts the zip archive to a given directory. This method makes sure a file cannot be placed outside the directory.

Exceptions
ExtractException

Definition at line 35 of file ZipService.php.

References TYPO3\CMS\Core\Service\Archive\ZipService\assertDirectoryIsWritable(), and TYPO3\CMS\Core\Utility\GeneralUtility\fixPermissions().

◆ verify()

TYPO3\CMS\Core\Service\Archive\ZipService::verify ( string  $fileName)
Exceptions
ExtractException

Definition at line 59 of file ZipService.php.