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