Source for file FileDownloadProxy.php

Documentation is available at FileDownloadProxy.php

  1. <?php
  2. /**
  3. * Class Proxy file when request is a download
  4. *
  5. * PHP versions 5
  6. @category  PHP
  7. @package   GeoPrisma
  8. @author    Julien-Samuel Lacroix
  9. @copyright 2010, Mapgears
  10. @license   http://www.geoprisma.org/license BSD License
  11. @link      http://www.geoprisma.org
  12. */
  13.  
  14. /**
  15. * Class Proxy file when request is a download
  16. @category   PHP
  17. @package    GeoPrisma
  18. @subpackage FileProxy
  19. @author     Julien-Samuel Lacroix
  20. */ 
  21. {
  22.  
  23.     /**
  24.     * Foward the call end return the result
  25.     * 
  26.     * @return void 
  27.     */
  28.     public function process()
  29.     {
  30.         $strFilePath $this->getLayer();
  31.  
  32.         $objFileTree new org_geoprisma_proxy_file_FileTree($this->getService()->getSource());
  33.  
  34.         $objFileTree->download($strFilePath);
  35.     }
  36.     
  37.     /**
  38.     * Retourne le nom de l'action rĂ©aliser par le proxy (Create - Read - Update - Delete)
  39.     *                                   
  40.     * @return string 
  41.     */
  42.     public function getAction()
  43.     {
  44.         return self::CRUD_READ;    
  45.     }
  46. }
  47.  
  48. ?>

Documentation generated on Mon, 20 Feb 2012 13:46:15 -0500 by phpDocumentor 1.4.1