class PharAdapter implements Adapter
Class PharAdapter * this class is an adapter for phar,tar,tar.gz,bz2,gz files
Methods
__construct()
|
||
static bool |
supports(string $type)
|
|
File[] |
getFiles()
|
|
object |
getArchive()
|
|
bool |
unzip(string $destination = null, string|array $entries = null)
|
|
string |
getFilename()
|
|
int |
getFilesCount()
|
|
string|bool |
getComment()
|
|
Adapter|bool |
setComment(string $comment)
|
|
$this |
updateArchive()
|
|
void |
open(string $file, int $flags = Phar::KEY_AS_FILENAME)
|
|
Adapter |
addFolder(string $path, string $parent = '')
|
|
bool |
addFile(string $path, string $localName = null, int $start, null $length = null, bool $noUpdate = false)
|
|
bool |
removeFileByObject(File $file)
|
|
bool |
removeFileByName(string $name)
|
|
array |
addGlob(string $glob, int $flags = GLOB_BRACE, array $options = array())
|
|
array |
addPattern(string $pattern, string $directory, array $options = array())
|
|
Adapter |
compress(string $format = \PharData::GZ)
|
Details
at line 57
public
__construct()
at line 67
static public bool
supports(string $type)
at line 75
public File[]
getFiles()
at line 93
public object
getArchive()
at line 101
public bool
unzip(string $destination = null, string|array $entries = null)
at line 113
public string
getFilename()
at line 121
public int
getFilesCount()
at line 129
public string|bool
getComment()
at line 137
public Adapter|bool
setComment(string $comment)
at line 145
public $this
updateArchive()
at line 154
public void
open(string $file, int $flags = Phar::KEY_AS_FILENAME)
at line 163
public Adapter
addFolder(string $path, string $parent = '')
at line 191
public bool
addFile(string $path, string $localName = null, int $start, null $length = null, bool $noUpdate = false)
at line 209
public bool
removeFileByObject(File $file)
at line 217
public bool
removeFileByName(string $name)
at line 227
public array
addGlob(string $glob, int $flags = GLOB_BRACE, array $options = array())
at line 235
public array
addPattern(string $pattern, string $directory, array $options = array())
at line 243
public Adapter
compress(string $format = \PharData::GZ)