summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-12-04 10:30:32 +0100
committerAndrey Andreev <narf@devilix.net>2014-12-04 10:30:32 +0100
commita94c397768c5906e0e519dc5b473d0688048caaa (patch)
tree9b0f659cc6fa6f67cb18acb49087fff7e138a69a /user_guide_src/source
parentdfcca20182d608f68f56a6129cc57b41503244d9 (diff)
parentd187847cd09eaacb881ddebe74416fdfa7a6ead9 (diff)
Merge pull request #3341 from garrettair/gzcompress-arguments
Adds Compression options to Zip Library
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/changelog.rst6
-rw-r--r--user_guide_src/source/libraries/zip.rst5
2 files changed, 10 insertions, 1 deletions
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index 39e644e18..08b692168 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -420,7 +420,11 @@ Release Date: Not Released
- Added method chaining support.
- Added support for setting table class defaults in a config file.
- - :doc:`Zip Library <libraries/zip>` method ``read_file()`` can now also alter the original file path/name while adding files to an archive.
+ - :doc:`Zip Library <libraries/zip>` changes include:
+
+ - Method ``read_file()`` can now also alter the original file path/name while adding files to an archive.
+ - Added support for changing the compression level and encoding used by gzcompress.
+
- :doc:`Trackback Library <libraries/trackback>` method ``receive()`` will now utilize ``iconv()`` if it is available but ``mb_convert_encoding()`` is not.
- Core
diff --git a/user_guide_src/source/libraries/zip.rst b/user_guide_src/source/libraries/zip.rst
index 4ca14086a..a6b98c2ac 100644
--- a/user_guide_src/source/libraries/zip.rst
+++ b/user_guide_src/source/libraries/zip.rst
@@ -88,6 +88,11 @@ Class Reference
The above example will place my_bio.txt inside a folder called personal.
+ You can change the level of compression and encoding that is used by the gzcompress function during compression::
+
+ $this->zip->compression_level = 0; // Disable compression
+ $this->zip->compression_encoding = ZLIB_ENCODING_GZIP;
+
.. method:: add_dir($directory)
:param mixed $directory: Directory name string or an array of multiple directories