29,8 → 29,7 |
* @package XML_Feed_Parser |
* @todo Find a Relax NG URI we can use |
*/ |
class XML_Feed_Parser_RSS09 extends XML_Feed_Parser_Type |
{ |
class XmlFeedParserRss09 extends XmlFeedParserType { |
/** |
* The URI of the RelaxNG schema used to (optionally) validate the feed |
* @var string |
53,7 → 52,7 |
* The class used to represent individual items |
* @var string |
*/ |
protected $itemClass = 'XML_Feed_Parser_RSS09Element'; |
protected $itemClass = 'XmlFeedParserRss09Element'; |
|
/** |
* The element containing entries |
102,8 → 101,7 |
* @param DOMDocument $xml A DOM object representing the feed |
* @param bool (optional) $string Whether or not to validate this feed |
*/ |
function __construct(DOMDocument $model, $strict = false) |
{ |
function __construct(DOMDocument $model, $strict = false) { |
$this->model = $model; |
|
$this->xpath = new DOMXPath($model); |
122,8 → 120,7 |
* @param string $id any valid ID. |
* @return false |
*/ |
function getEntryById($id) |
{ |
function getEntryById($id) { |
return false; |
} |
|
132,8 → 129,7 |
* |
* @return array|false an array simply containing the child elements |
*/ |
protected function getImage() |
{ |
protected function getImage() { |
$images = $this->model->getElementsByTagName('image'); |
if ($images->length > 0) { |
$image = $images->item(0); |
163,8 → 159,7 |
* |
* @return array|false |
*/ |
protected function getTextInput() |
{ |
protected function getTextInput() { |
$inputs = $this->model->getElementsByTagName('textinput'); |
if ($inputs->length > 0) { |
$input = $inputs->item(0); |
200,8 → 195,7 |
* |
* @return string |
*/ |
function getLink($offset = 0, $attribute = 'href', $params = false) |
{ |
function getLink($offset = 0, $attribute = 'href', $params = false) { |
$links = $this->model->getElementsByTagName('link'); |
if ($links->length <= $offset) { |
return false; |