2
0

Date.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.
  19. * (http://www.zend.com)
  20. * @license http://framework.zend.com/license/new-bsd New BSD License
  21. */
  22. /**
  23. * @see Zend_Gdata_Extension
  24. */
  25. require_once 'Zend/Gdata/Extension.php';
  26. /**
  27. * Point or period of time associated with an event in the lifecycle of the
  28. * resource
  29. *
  30. * @category Zend
  31. * @package Zend_Gdata
  32. * @subpackage DublinCore
  33. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc.
  34. * (http://www.zend.com)
  35. * @license http://framework.zend.com/license/new-bsd New BSD License
  36. */
  37. class Zend_Gdata_DublinCore_Extension_Date extends Zend_Gdata_Extension
  38. {
  39. protected $_rootNamespace = 'dc';
  40. protected $_rootElement = 'date';
  41. /**
  42. * Constructor for Zend_Gdata_DublinCore_Extension_Date which
  43. * Point or period of time associated with an event in the lifecycle of the
  44. * resource
  45. *
  46. * @param DOMElement $element (optional) DOMElement from which this
  47. * object should be constructed.
  48. */
  49. public function __construct($value = null)
  50. {
  51. $this->registerAllNamespaces(Zend_Gdata_DublinCore::$namespaces);
  52. parent::__construct();
  53. $this->_text = $value;
  54. }
  55. }