2
0

Element.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 App
  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_App_Extension
  23. */
  24. require_once 'Zend/Gdata/App/Extension.php';
  25. /**
  26. * Class that represents elements which were not handled by other parsing
  27. * code in the library.
  28. *
  29. * @category Zend
  30. * @package Zend_Gdata
  31. * @subpackage App
  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_App_Extension_Element extends Zend_Gdata_App_Extension
  36. {
  37. public function __construct($rootElement=null, $rootNamespace=null, $rootNamespaceURI=null, $text=null){
  38. parent::__construct();
  39. $this->_rootElement = $rootElement;
  40. $this->_rootNamespace = $rootNamespace;
  41. $this->_rootNamespaceURI = $rootNamespaceURI;
  42. $this->_text = $text;
  43. }
  44. public function transferFromDOM($node)
  45. {
  46. parent::transferFromDOM($node);
  47. $this->_rootNamespace = null;
  48. $this->_rootNamespaceURI = $node->namespaceURI;
  49. $this->_rootElement = $node->localName;
  50. }
  51. }