2
0

Geo.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Gdata
  17. * @subpackage Geo
  18. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. */
  21. /**
  22. * @see Zend_Gdata
  23. */
  24. require_once 'Zend/Gdata.php';
  25. /**
  26. * Service class for interacting with the services which use the
  27. * GeoRSS + GML extensions.
  28. * @link http://georss.org/
  29. * @link http://www.opengis.net/gml/
  30. * @link http://code.google.com/apis/picasaweb/reference.html#georss_reference
  31. *
  32. * @category Zend
  33. * @package Zend_Gdata
  34. * @subpackage Geo
  35. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  36. * @license http://framework.zend.com/license/new-bsd New BSD License
  37. */
  38. class Zend_Gdata_Geo extends Zend_Gdata
  39. {
  40. /**
  41. * Namespaces used for Zend_Gdata_Geo
  42. *
  43. * @var array
  44. */
  45. public static $namespaces = array(
  46. array('georss', 'http://www.georss.org/georss', 1, 0),
  47. array('gml', 'http://www.opengis.net/gml', 1, 0)
  48. );
  49. /**
  50. * Create Zend_Gdata_Geo object
  51. *
  52. * @param Zend_Http_Client $client (optional) The HTTP client to use when
  53. * when communicating with the Google Apps servers.
  54. * @param string $applicationId The identity of the app in the form of Company-AppName-Version
  55. */
  56. public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0')
  57. {
  58. $this->registerPackage('Zend_Gdata_Geo');
  59. $this->registerPackage('Zend_Gdata_Geo_Extension');
  60. parent::__construct($client, $applicationId);
  61. }
  62. }