\PhpZip\Model\Extra\FieldsUnrecognizedExtraField

Simple placeholder for all those extra fields we don't want to deal with.

Summary

Methods
Properties
Constants
__construct()
setHeaderId()
getHeaderId()
unpackLocalFileData()
unpackCentralDirData()
packLocalFileData()
packCentralDirData()
getData()
setData()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$headerId
$data
N/A

Properties

$headerId

$headerId : int

Type

int

$data

$data : string

Type

string — extra field data without Header-ID or length specifier

Methods

__construct()

__construct(int  $headerId, string  $data) : mixed

UnrecognizedExtraField constructor.

Parameters

int $headerId
string $data

Returns

mixed —

setHeaderId()

setHeaderId(int  $headerId) : mixed

Parameters

int $headerId

Returns

mixed —

getHeaderId()

getHeaderId() : int

Returns the Header ID (type) of this Extra Field.

The Header ID is an unsigned short integer (two bytes) which must be constant during the life cycle of this object.

Returns

int —

unpackLocalFileData()

unpackLocalFileData(string  $buffer, \PhpZip\Model\ZipEntry|null  $entry = null) : static

Populate data from this array as if it was in local file data.

Parameters

string $buffer

the buffer to read data from

\PhpZip\Model\ZipEntry|null $entry

Returns

static —

unpackCentralDirData()

unpackCentralDirData(string  $buffer, \PhpZip\Model\ZipEntry|null  $entry = null) : static

Populate data from this array as if it was in central directory data.

Parameters

string $buffer

the buffer to read data from

\PhpZip\Model\ZipEntry|null $entry

Returns

static —

packLocalFileData()

packLocalFileData() : string

The actual data to put into local file data - without Header-ID or length specifier.

Returns

string —

the data

packCentralDirData()

packCentralDirData() : string

The actual data to put into central directory - without Header-ID or length specifier.

Returns

string —

the data

getData()

getData() : string

Returns

string —

setData()

setData(string  $data) : mixed

Parameters

string $data

Returns

mixed —

__toString()

__toString() : string

Returns

string —