| 1 |
<?php |
| 2 |
class MagpieMockLink extends SyndicatedLink { |
| 3 |
var $url; |
| 4 |
|
| 5 |
function MagpieMockLink ($rss, $url) { |
| 6 |
$this->link = $rss; |
| 7 |
$this->magpie = $rss; |
| 8 |
$this->url = $url; |
| 9 |
$this->id = -1; |
| 10 |
$this->settings = array( |
| 11 |
'unfamiliar category' => 'default', |
| 12 |
|
| 13 |
); |
| 14 |
} /* function MagpieMockLink::MagpieMockLink () */ |
| 15 |
|
| 16 |
function poll ($crash_ts = NULL) { |
| 17 |
// Do nothing but update copy of feed |
| 18 |
$this->magpie = fetch_rss($this->url); |
| 19 |
$this->link = $this->magpie; |
| 20 |
} /* function MagpieMockLink::poll () */ |
| 21 |
|
| 22 |
function uri () { |
| 23 |
return $this->url; |
| 24 |
} /* function MagpieMockLink::uri() */ |
| 25 |
|
| 26 |
function homepage () { |
| 27 |
return (is_object($this->magpie) ? $this->magpie->channel['link'] : null); |
| 28 |
} /* function MagpieMockLink::homepage () */ |
| 29 |
} /* class MagpieMockLink */ |
| 30 |
|
| 31 |
|
| 32 |
|