blob: f91cf20f534244e6cd4ea60ecad4ce509aba561f (
plain)
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
|
<?php
/**
* Planet person
*/
class PlanetFeed extends SimplePie{
var $name;
var $feed;
var $website;
function __construct($name, $feed, $website){
$this->name = $name;
$this->feed = $feed;
$this->website = $website;
parent::__construct();
$this->set_item_class('PlanetItem');
$this->set_cache_location(dirname(__FILE__).'/../../cache');
$this->set_autodiscovery_level(SIMPLEPIE_LOCATOR_NONE);
$this->set_feed_url($this->getFeed());
$this->set_timeout(5);
$this->set_stupidly_fast(true);
}
function getFeed(){
return $this->feed;
}
function getName(){
return $this->name;
}
function getWebsite(){
return $this->website;
}
function compare($person1, $person2){
return strcasecmp($person1->name, $person2->name);
}
}
|