# feedwordpress/2009.0612/magpiemocklink.class.php

FeedWordPress, version 2009.0612. 32 lines.

- Page: https://pluginprobe.com/plugins/feedwordpress/2009.0612/code/magpiemocklink.class.php
- Raw: https://pluginprobe.com/plugins/feedwordpress/2009.0612/raw/magpiemocklink.class.php
- Modified: 2009-06-12T18:01:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/feedwordpress/2009.0612/code/magpiemocklink.class.php#L10-L20`.

```php
<?php
class MagpieMockLink extends SyndicatedLink {
	var $url;

	function MagpieMockLink ($rss, $url) {
		$this->link = $rss;
		$this->magpie = $rss;
		$this->url = $url;
		$this->id = -1;
		$this->settings = array(
			'unfamiliar category' => 'default',
			
		);
	} /* function MagpieMockLink::MagpieMockLink () */

	function poll ($crash_ts = NULL) {
		// Do nothing but update copy of feed
		$this->magpie = fetch_rss($this->url);
		$this->link = $this->magpie;
	} /* function MagpieMockLink::poll () */

	function uri () {
		return $this->url;
	} /* function MagpieMockLink::uri() */

	function homepage () {
		return (is_object($this->magpie) ? $this->magpie->channel['link'] : null);
	} /* function MagpieMockLink::homepage () */
} /* class MagpieMockLink */



```
