2
0

DublinCore.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 DublinCore
  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. * DublinCore extensions.
  28. *
  29. * @category Zend
  30. * @package Zend_Gdata
  31. * @subpackage DublinCore
  32. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  33. * @license http://framework.zend.com/license/new-bsd New BSD License
  34. */
  35. class Zend_Gdata_DublinCore extends Zend_Gdata
  36. {
  37. /**
  38. * Namespaces used for Zend_Gdata_DublinCore
  39. *
  40. * @var array
  41. */
  42. public static $namespaces = array(
  43. array('dc', 'http://purl.org/dc/terms', 1, 0)
  44. );
  45. /**
  46. * Create Zend_Gdata_DublinCore object
  47. *
  48. * @param Zend_Http_Client $client (optional) The HTTP client to use when
  49. * when communicating with the Google servers.
  50. * @param string $applicationId The identity of the app in the form of Company-AppName-Version
  51. */
  52. public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0')
  53. {
  54. $this->registerPackage('Zend_Gdata_DublinCore');
  55. $this->registerPackage('Zend_Gdata_DublinCore_Extension');
  56. parent::__construct($client, $applicationId);
  57. }
  58. }