1: <?php
2: /**
3: * Portions Copyright 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
4: * Copyright 2007-2012 Horde LLC (http://www.horde.org/)
5: *
6: * @category Horde
7: * @package Feed
8: */
9:
10: /**
11: * Concrete class for working with RSS items.
12: *
13: * @category Horde
14: * @package Feed
15: */
16: class Horde_Feed_Entry_Rss extends Horde_Feed_Entry_Base
17: {
18: /**
19: * The XML string for an "empty" RSS entry.
20: *
21: * @var string
22: */
23: protected $_emptyXml = '<item/>';
24:
25: /**
26: * Return encoded content if it's present.
27: *
28: * @return string
29: */
30: public function getContent()
31: {
32: if (isset($this->_children['content:encoded'])) {
33: return $this->_children['content:encoded'];
34: } elseif (isset($this->_children['encoded'])) {
35: return $this->_children['encoded'];
36: }
37: return isset($this->_children['content']) ? $this->_children['content'] : array();
38: }
39:
40: }
41: