/usr/share/php/Horde/Feed/Blogroll.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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | <?php
/**
* Copyright 2008-2012 Horde LLC (http://www.horde.org/)
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
* @category Horde
* @package Feed
*/
/**
* Blogroll feed list class
*
* This is not a generic OPML implementation, but one focused on lists of feeds,
* i.e. blogrolls. See http://en.wikipedia.org/wiki/OPML for more information on
* OPML.
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
* @category Horde
* @package Feed
*/
class Horde_Feed_Blogroll extends Horde_Feed_Base
{
/**
* The classname for individual feed elements.
* @var string
*/
protected $_listItemClassName = 'Horde_Feed_Entry_Blogroll';
/**
* The default namespace for blogrolls.
* @var string
*/
protected $_defaultNamespace = '';
/**
* The XML string for an "empty" Blogroll.
* @var string
*/
protected $_emptyXml = '<?xml version="1.0" encoding="utf-8"?><opml version="1.1"></opml>';
/**
* Cache outline elements so they don't need to be searched for on every
* operation.
*/
protected function _buildListItemCache()
{
$entries = array();
foreach ($this->_element->getElementsByTagName('outline') as $child) {
if ($child->attributes->getNamedItem('xmlurl')) {
$entries[] = $child;
}
}
return $entries;
}
public function getBody()
{
return $this;
}
public function getOutline()
{
return $this;
}
public function getTitle()
{
return $this->head->title;
}
}
|