<?php
class FeedItem_Atom extends FeedItem_Common {
+
+ private $baseUrl;
+
+ function __construct($elem, $doc, $xpath, $baseUrl) {
+ parent::__construct($elem, $doc, $xpath);
+ $this->baseUrl= $baseUrl;
+ }
+
function get_id() {
$id = $this->elem->getElementsByTagName("id")->item(0);
|| $link->getAttribute("rel") == "alternate"
|| $link->getAttribute("rel") == "standout")) {
- return $link->getAttribute("href");
+ return $this->baseUrl.$link->getAttribute("href");
}
}
}