Example #1
0
 /**
  * Toggle requesting gzip encoded responses
  *
  * @param  boolean $enabled Whether or not to enable gzipped responses
  * @return void
  */
 public static function setGzipEnabled($enabled = false)
 {
     if ($enabled && !function_exists('gzinflate')) {
         require_once 'Zend/Gdata/App/InvalidArgumentException.php';
         throw new Zend_Gdata_App_InvalidArgumentException('You cannot enable gzipped responses if the zlib module ' . 'is not enabled in your PHP installation.');
     }
     self::$_gzipEnabled = $enabled;
 }