Source for file MapFishPrintProxyFactory.php

Documentation is available at MapFishPrintProxyFactory.php

  1. <?php
  2. /**
  3. * Constructs the MapFishPrintProxy instance according to the type of request
  4. *
  5. * PHP versions 5
  6. @category  PHP
  7. @package   GeoPrisma
  8. @author    Alexandre Dube
  9. @copyright 2011, Boreal - Information Strategies
  10. @license   http://www.geoprisma.org/license BSD License
  11. @link      http://www.geoprisma.org
  12. */
  13.  
  14. /**
  15. * MapFishPrint proxy factory
  16. @category   PHP
  17. @package    GeoPrisma
  18. @subpackage Proxy
  19. @author     Alexandre Dube
  20. */  
  21. {
  22.     /**
  23.     * Returns the right kind of mapfish print proxy
  24.     * 
  25.     * @param org_geoprisma_service_MapFishPrintService $pobjService Service
  26.     * 
  27.     * @return org_geoprisma_proxy_wfs_MapFishPrintProxy 
  28.     */
  29.     public static function getMapFishPrintProxy(org_geoprisma_service_MapFishPrintService $pobjService)
  30.     {        
  31.         if (!isset($_REQUEST))
  32.         {
  33.             $objProxy null;
  34.         }
  35.         else if (isset($_REQUEST['osmfile']))
  36.         {
  37.             $objProxy new org_geoprisma_proxy_mapfishprint_MapFishPrintGetFileProxy($pobjService);
  38.         }
  39.         else
  40.         {
  41.             $objProxy new org_geoprisma_proxy_mapfishprint_MapFishPrintProxy($pobjService);
  42.         }
  43.  
  44.         if ($objProxy == null)
  45.         {
  46.             throw new com_borealis_foundation_exception_AssertException("Proxy method not handled.");
  47.         }
  48.  
  49.         return $objProxy;
  50.     }    
  51. }
  52. ?>

Documentation generated on Thu, 19 Jan 2012 00:08:40 +0400 by phpDocumentor 1.4.1