1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-04 06:27:23 +02:00

Merge pull request #36 from chrisgraham/develop

Fixed slightly confusing language regarding setPassword
This commit is contained in:
Ne-Lexa
2019-04-04 11:37:51 +03:00
committed by GitHub

View File

@@ -567,7 +567,7 @@ $zipFile->rename($oldName, $newName);
```
<a name="Documentation-ZipFile-setCompressionLevel"></a> **ZipFile::setCompressionLevel** - set the compression level for all files in the archive.
> _Note that this method does not apply to entries that were added after this method was run._
> _Note that this method does not apply to entries that are added after this method is run._
By default, the compression level is -1 (`\PhpZip\ZipFile::LEVEL_DEFAULT_COMPRESSION`) or the compression level specified in the archive for Deflate compression.
@@ -671,7 +671,7 @@ $zipFile->setReadPasswordEntry($entryName, $password);
```
<a name="Documentation-ZipFile-setPassword"></a> **ZipFile::setPassword** - sets a new password for all files in the archive.
> _Note that this method does not apply to entries that were added after this method was run._
> _Note that this method does not apply to entries that are added after this method is run._
```php
$zipFile->setPassword($password);
```
@@ -691,7 +691,7 @@ $zipFile->setPasswordEntry($entryName, $password, $encryptionMethod);
```
<a name="Documentation-ZipFile-disableEncryption"></a> **ZipFile::disableEncryption** - disable encryption for all entries that are already in the archive.
> _Note that this method does not apply to entries that were added after this method was run._
> _Note that this method does not apply to entries that are added after this method is run._
```php
$zipFile->disableEncryption();
```