Zend_Gdata_Extension_Comments

Represents the gd:comments element.

Defined (1)

The class is defined in the following location(s).

/inc/VideoUploader/includes/Zend/Gdata/Extension/Comments.php  
  1. class Zend_Gdata_Extension_Comments extends Zend_Gdata_Extension 
  2.  
  3. protected $_rootElement = 'comments'; 
  4. protected $_rel = null; 
  5. protected $_feedLink = null; 
  6.  
  7. public function __construct($rel = null, $feedLink = null) 
  8. parent::__construct(); 
  9. $this->_rel = $rel; 
  10. $this->_feedLink = $feedLink; 
  11.  
  12. public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) 
  13. $element = parent::getDOM($doc, $majorVersion, $minorVersion); 
  14. if ($this->_rel !== null) { 
  15. $element->setAttribute('rel', $this->_rel); 
  16. if ($this->_feedLink !== null) { 
  17. $element->appendChild($this->_feedLink->getDOM($element->ownerDocument)); 
  18. return $element; 
  19.  
  20. protected function takeChildFromDOM($child) 
  21. $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; 
  22. switch ($absoluteNodeName) { 
  23. case $this->lookupNamespace('gd') . ':' . 'feedLink'; 
  24. $feedLink = new Zend_Gdata_Extension_FeedLink(); 
  25. $feedLink->transferFromDOM($child); 
  26. $this->_feedLink = $feedLink; 
  27. break; 
  28. default: 
  29. parent::takeChildFromDOM($child); 
  30. break; 
  31.  
  32. protected function takeAttributeFromDOM($attribute) 
  33. switch ($attribute->localName) { 
  34. case 'rel': 
  35. $this->_rel = $attribute->nodeValue; 
  36. break; 
  37. default: 
  38. parent::takeAttributeFromDOM($attribute); 
  39.  
  40. public function getRel() 
  41. return $this->_rel; 
  42.  
  43. public function setRel($value) 
  44. $this->_rel = $value; 
  45. return $this; 
  46.  
  47. public function getFeedLink() 
  48. return $this->_feedLink; 
  49.  
  50. public function setFeedLink($value) 
  51. $this->_feedLink = $value; 
  52. return $this; 
  53.