The PharData class
Введение
The PharData class provides a high-level interface to accessing and creating non-executable tar and zip archives. Because these archives do not contain a stub and cannot be executed by the phar extension, it is possible to create and manipulate regular zip and tar files using the PharData class even if phar.readonly php.ini setting is 1.
Class synopsis
PharData
class PharData
extends
Phar
{
/* Properties */
/* Methods */
/* Inherited methods */
void Phar::webPhar
( string $alias
, string $index
, string $f404
, array $mimetypes
, array $rewrites
)
}Содержание
- PharData::buildFromIterator — Construct a tar or zip archive from an iterator.
- PharData::compressAllFilesBZIP2 — Compresses all files in the current tar/zip archive using Bzip2 compression
- PharData::compressAllFilesGZ — Compresses all files in the current tar/zip archive using Gzip compression
- PharData::__construct — Construct a non-executable tar or zip archive object
- PharData::convertToPhar — Convert the tar/zip archive to the phar file format
- PharData::convertToTar — Convert a zip archive to the tar file format
- PharData::convertToZip — Convert a tar archive to the zip file format
- PharData::copy — Copy a file internal to the phar archive to another new file within the phar
- PharData::delMetadata — Deletes the global metadata of a zip archive
- PharData::offsetSet — set the contents of a file within the tar/zip to those of an external file or string
- PharData::setAlias — dummy function (Phar::setAlias is not valid for PharData)
- PharData::setStub — dummy function (Phar::setStub is not valid for PharData)
Коментарии
404 Not Found