ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (ZipStream $zip, string $name, ?FileOptions $opt=null) | |
processPath (string $path) | |
processData (string $data) | |
addFileHeader () | |
Create and send zip header for this file. More... | |
addFileFooter () | |
Create and send data descriptor footer for this file. More... | |
processStream (StreamInterface $stream) | |
getCdrFile () | |
Send CDR record for specified file. More... | |
getTotalLength () | |
Static Public Member Functions | |
static | filterFilename (string $filename) |
Strip characters that are not legal in Windows filenames to prevent compatibility issues. More... | |
Data Fields | |
const | HASH_ALGORITHM = 'crc32b' |
const | BIT_ZERO_HEADER = 0x0008 |
const | BIT_EFS_UTF8 = 0x0800 |
const | COMPUTE = 1 |
const | SEND = 2 |
$name | |
$opt | |
$len | |
$zlen | |
$crc | |
$hlen | |
$ofs | |
$bits | |
$version | |
$zip | |
Protected Member Functions | |
buildZip64ExtraBlock (bool $force=false) | |
processStreamWithZeroHeader (StreamInterface $stream) | |
readStream (StreamInterface $stream, ?int $options=null) | |
deflateInit () | |
deflateData (StreamInterface $stream, string &$data, ?int $options=null) | |
deflateFinish (?int $options=null) | |
processStreamWithComputedHeader (StreamInterface $stream) | |
Static Protected Member Functions | |
static | dosTime (int $when) |
Convert a UNIX timestamp to a DOS timestamp. More... | |
Private Attributes | |
const | CHUNKED_READ_BLOCK_SIZE = 1048576 |
$deflate | |
$hash | |
$method | |
$totalLength | |
ZipStream\File::__construct | ( | ZipStream | $zip, |
string | $name, | ||
?FileOptions | $opt = null |
||
) |
ZipStream\File::addFileFooter | ( | ) |
Create and send data descriptor footer for this file.
Definition at line 303 of file File.php.
References init().
ZipStream\File::addFileHeader | ( | ) |
Create and send zip header for this file.
Definition at line 146 of file File.php.
References $comment, $data, $header, $name, $time, and init().
|
protected |
Definition at line 265 of file File.php.
|
protected |
Definition at line 378 of file File.php.
References PHPMailer\PHPMailer\$options, Psr\Http\Message\StreamInterface\eof(), GuzzleHttp\Psr7\hash(), and init().
|
protected |
Definition at line 398 of file File.php.
References PHPMailer\PHPMailer\$options, and GuzzleHttp\Psr7\hash().
|
protected |
Definition at line 367 of file File.php.
References GuzzleHttp\Psr7\hash().
|
staticfinalprotected |
|
static |
ZipStream\File::getCdrFile | ( | ) |
Send CDR record for specified file.
Definition at line 433 of file File.php.
References $comment, $header, $name, and $time.
Referenced by ZipStream\ZipStream\addToCdr().
ZipStream\File::getTotalLength | ( | ) |
Definition at line 473 of file File.php.
Referenced by ZipStream\ZipStream\addToCdr().
ZipStream\File::processData | ( | string | $data | ) |
Definition at line 124 of file File.php.
ZipStream\File::processPath | ( | string | $path | ) |
ZipStream\File::processStream | ( | StreamInterface | $stream | ) |
Definition at line 328 of file File.php.
|
protected |
Definition at line 405 of file File.php.
References $data, Psr\Http\Message\StreamInterface\eof(), init(), Psr\Http\Message\StreamInterface\read(), and Psr\Http\Message\StreamInterface\rewind().
|
protected |
Definition at line 340 of file File.php.
|
protected |
Definition at line 348 of file File.php.
References $data, PHPMailer\PHPMailer\$options, $size, $total, Psr\Http\Message\StreamInterface\eof(), and Psr\Http\Message\StreamInterface\read().
|
private |