TarExtension uses ConstantsTrait
FileExtension
Enumeration class that defines various file extension supported by the application.
Tags
Table of Contents
Constants
- TAR = '.tar'
- TAR_BZ2 = '.tar.bz2'
- TAR_GZ = '.tar.gz'
- TAR_LZ = '.tar.lz'
- TAR_LZMA = '.tar.lzma'
- TAR_LZO = '.tar.lzo'
- TAR_XZ = '.tar.xz'
- TAR_Z = '.tar.Z'
- TAR_ZST = '.tar.zst'
- TBZ2 = '.tbz2'
- TGZ = '.tgz'
- TXZ = '.txz'
Methods
- getCompressionExtension() : string
- Gets the file extension added by Phar compression.
- getExtensionForCompression() : string
- Gets the appropriate file extension for a compression type.
Constants
TAR
public
mixed
TAR
= '.tar'
TAR_BZ2
public
mixed
TAR_BZ2
= '.tar.bz2'
TAR_GZ
public
mixed
TAR_GZ
= '.tar.gz'
TAR_LZ
public
mixed
TAR_LZ
= '.tar.lz'
TAR_LZMA
public
mixed
TAR_LZMA
= '.tar.lzma'
TAR_LZO
public
mixed
TAR_LZO
= '.tar.lzo'
TAR_XZ
public
mixed
TAR_XZ
= '.tar.xz'
TAR_Z
public
mixed
TAR_Z
= '.tar.Z'
TAR_ZST
public
mixed
TAR_ZST
= '.tar.zst'
TBZ2
public
mixed
TBZ2
= '.tbz2'
TGZ
public
mixed
TGZ
= '.tgz'
TXZ
public
mixed
TXZ
= '.txz'
Methods
getCompressionExtension()
Gets the file extension added by Phar compression.
public
static getCompressionExtension(string $compression) : string
Parameters
- $compression : string
-
The compression type.
Tags
Return values
string —The extension added by compression.
getExtensionForCompression()
Gets the appropriate file extension for a compression type.
public
static getExtensionForCompression(string $compression) : string
Parameters
- $compression : string
-
The compression type.
Tags
Return values
string —The file extension.