[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/ezfile/classes/ -> ezforwardcompressionhandler.php (source)

   1  <?php
   2  //
   3  // Definition of eZForwardCompressionHandler class
   4  //
   5  // Created on: <13-Aug-2003 16:20:19 amos>
   6  //
   7  // SOFTWARE NAME: eZ publish
   8  // SOFTWARE RELEASE: 3.9.0
   9  // BUILD VERSION: 17785
  10  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
  11  // SOFTWARE LICENSE: GNU General Public License v2.0
  12  // NOTICE: >
  13  //   This program is free software; you can redistribute it and/or
  14  //   modify it under the terms of version 2.0  of the GNU General
  15  //   Public License as published by the Free Software Foundation.
  16  //
  17  //   This program is distributed in the hope that it will be useful,
  18  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  19  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20  //   GNU General Public License for more details.
  21  //
  22  //   You should have received a copy of version 2.0 of the GNU General
  23  //   Public License along with this program; if not, write to the Free
  24  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  25  //   MA 02110-1301, USA.
  26  //
  27  //
  28  
  29  /*! \file ezgzipcompressionhandler.php
  30  */
  31  
  32  /*!
  33    \class eZForwardCompressionHandler ezgzipcompressionhandler.php
  34    \brief Handles files compressed with gzip
  35  
  36    This class is a wrapper of the eZGZIPZLIBCompressionHandler and
  37    eZGZIPShellCompressionHandler classes.
  38  */
  39  
  40  include_once ( 'lib/ezfile/classes/ezcompressionhandler.php' );
  41  
  42  class eZForwardCompressionHandler extends eZCompressionHandler
  43  {
  44      /*!
  45       See eZCompressionHandler::eZCompressionHandler
  46      */
  47      function eZForwardCompressionHandler( &$handler,
  48                                            $name, $identifier )
  49      {
  50          $this->ForwardHandler =& $handler;
  51          $this->eZCompressionHandler( $name, $identifier );
  52      }
  53  
  54      /*!
  55       \return the current handler which all requests are forwarded to.
  56      */
  57      function &forwardHandler()
  58      {
  59          return $this->ForwardHandler;
  60      }
  61  
  62      /*!
  63       \reimp
  64      */
  65      function doOpen( $filename, $mode )
  66      {
  67          return $this->ForwardHandler->doOpen( $filename, $mode );
  68      }
  69  
  70      /*!
  71       \reimp
  72      */
  73      function doClose()
  74      {
  75          return $this->ForwardHandler->doClose();
  76      }
  77  
  78      /*!
  79       \reimp
  80      */
  81      function doRead( $uncompressedLength = false )
  82      {
  83          return $this->ForwardHandler->doRead( $uncompressedLength );
  84      }
  85  
  86      /*!
  87       \reimp
  88      */
  89      function doWrite( $data, $uncompressedLength = false )
  90      {
  91          return $this->ForwardHandler->doWrite( $data, $uncompressedLength );
  92      }
  93  
  94      /*!
  95       \reimp
  96      */
  97      function doFlush()
  98      {
  99          return $this->ForwardHandler->doFlush();
 100      }
 101  
 102      /*!
 103       \reimp
 104      */
 105      function doSeek( $offset, $whence )
 106      {
 107          return $this->ForwardHandler->doSeek( $offset, $whence );
 108      }
 109  
 110      /*!
 111       \reimp
 112      */
 113      function doRewind()
 114      {
 115          return $this->ForwardHandler->doRewind();
 116      }
 117  
 118      /*!
 119       \reimp
 120      */
 121      function doTell()
 122      {
 123          return $this->ForwardHandler->doTell();
 124      }
 125  
 126      /*!
 127       \reimp
 128      */
 129      function doEOF()
 130      {
 131          return $this->ForwardHandler->doEOF();
 132      }
 133  
 134      /*!
 135       \reimp
 136      */
 137      function doPasstrough()
 138      {
 139          return $this->ForwardHandler->doPasstrough();
 140      }
 141  
 142      /*!
 143       \reimp
 144      */
 145      function compress( $source )
 146      {
 147          return $this->ForwardHandler->compress( $source );
 148      }
 149  
 150      /*!
 151       \reimp
 152      */
 153      function decompress( $source )
 154      {
 155          return $this->ForwardHandler->decompress( $source );
 156      }
 157  
 158      /*!
 159       \reimp
 160      */
 161      function error()
 162      {
 163          return $this->ForwardHandler->error();
 164      }
 165  
 166      /*!
 167       \reimp
 168      */
 169      function errorString()
 170      {
 171          return $this->ForwardHandler->errorString();
 172      }
 173  
 174      /*!
 175       \reimp
 176      */
 177      function errorNumber()
 178      {
 179          return $this->ForwardHandler->errorNumber();
 180      }
 181  
 182      /*!
 183       \reimp
 184       Duplicates the forward compression handler by calling duplicate() on the handler
 185       which gets the forwarded requests and then creates a new eZForwardCompressionHandler.
 186      */
 187      function &duplicate()
 188      {
 189          $forwardCopy =& $this->ForwardHandler->duplicate();
 190          $copy = new eZForwardCompressionHandler( $forwardCopy, $this->name(), $this->identifier() );
 191          return $copy;
 192      }
 193  }
 194  
 195  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7