summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorgarrettair <garrettair@gmail.com>2014-12-03 22:28:07 +0100
committergarrettair <garrettair@gmail.com>2014-12-03 22:28:07 +0100
commitd187847cd09eaacb881ddebe74416fdfa7a6ead9 (patch)
tree7a7a17b5b2583e32decc7c44388e878a908bfb57 /user_guide_src/source
parent4a25cff212e4eb06bb4806f49054bd8b48c802a6 (diff)
Updated Zip Library documentation to mention compression features.
Signed-off-by: garrettair <garrettair@gmail.com>
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/libraries/zip.rst5
1 files changed, 5 insertions, 0 deletions
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