TarExtension uses ConstantsTrait
FileExtension
Enumeration class that defines various file extension supported by the application.
Tags
Table of Contents
Constants
- TAR : string = '.tar'
- TAR_BZ2 : string = '.tar.bz2'
- TAR_GZ : string = '.tar.gz'
- TAR_LZ : string = '.tar.lz'
- TAR_LZMA : string = '.tar.lzma'
- TAR_LZO : string = '.tar.lzo'
- TAR_XZ : string = '.tar.xz'
- TAR_Z : string = '.tar.Z'
- TAR_ZST : string = '.tar.zst'
- TBZ2 : string = '.tbz2'
- TGZ : string = '.tgz'
- TXZ : string = '.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
string
TAR
= '.tar'
TAR_BZ2
public
string
TAR_BZ2
= '.tar.bz2'
TAR_GZ
public
string
TAR_GZ
= '.tar.gz'
TAR_LZ
public
string
TAR_LZ
= '.tar.lz'
TAR_LZMA
public
string
TAR_LZMA
= '.tar.lzma'
TAR_LZO
public
string
TAR_LZO
= '.tar.lzo'
TAR_XZ
public
string
TAR_XZ
= '.tar.xz'
TAR_Z
public
string
TAR_Z
= '.tar.Z'
TAR_ZST
public
string
TAR_ZST
= '.tar.zst'
TBZ2
public
string
TBZ2
= '.tbz2'
TGZ
public
string
TGZ
= '.tgz'
TXZ
public
string
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.