PHP Класс PHPZip\Zip\Core\ZipUtils

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
clrBit ( &$data, $bit )
generateExtAttr ( integer $owner = 7, integer $group = 5, integer $other = 5, boolean $isFile = true ) : string Create the file permissions for a file or directory, for use in the extFileAttr parameters.
getDosTime ( integer $timestamp ) : string Calculate the 2 byte dos time used in the zip entries.
getFileExtAttr ( string $filename ) : string | boolean Get the file permissions for a file or directory, for use in the extFileAttr parameters.
setBit ( &$data, $bit, $value = true )
testBit ( $data, $bit )

Описание методов

clrBit() публичный статический Метод

public static clrBit ( &$data, $bit )

generateExtAttr() публичный статический Метод

Create the file permissions for a file or directory, for use in the extFileAttr parameters.
Автор: A. Grandt ([email protected])
public static generateExtAttr ( integer $owner = 7, integer $group = 5, integer $other = 5, boolean $isFile = true ) : string
$owner integer Unix permissions for owner (octal from 00 to 07)
$group integer Unix permissions for group (octal from 00 to 07)
$other integer Unix permissions for others (octal from 00 to 07)
$isFile boolean
Результат string EXTERNAL_REF field.

getDosTime() публичный статический Метод

Calculate the 2 byte dos time used in the zip entries.
Автор: A. Grandt ([email protected])
public static getDosTime ( integer $timestamp ) : string
$timestamp integer
Результат string 2-byte encoded DOS Date

getFileExtAttr() публичный статический Метод

Get the file permissions for a file or directory, for use in the extFileAttr parameters.
Автор: A. Grandt ([email protected])
public static getFileExtAttr ( string $filename ) : string | boolean
$filename string
Результат string | boolean external ref field, or false if the file is not found.

setBit() публичный статический Метод

public static setBit ( &$data, $bit, $value = true )

testBit() публичный статический Метод

public static testBit ( $data, $bit )