summaryrefslogtreecommitdiffstats
path: root/app/classes/PlanetItem.php
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-05-28 13:53:51 +0200
committernashe <thomas@chauchefoin.fr>2017-05-28 13:53:51 +0200
commitcec1a3d21fa822d4065492b217d997a8b1155d28 (patch)
treeb46b6f156600d7eb5bc0cc1faa72eeb49e2a010c /app/classes/PlanetItem.php
parentd2bb29ea95842059f9ae4dfe841d143ddf779258 (diff)
downloadplanet-cec1a3d21fa822d4065492b217d997a8b1155d28.tar
planet-cec1a3d21fa822d4065492b217d997a8b1155d28.tar.gz
planet-cec1a3d21fa822d4065492b217d997a8b1155d28.tar.bz2
planet-cec1a3d21fa822d4065492b217d997a8b1155d28.tar.xz
planet-cec1a3d21fa822d4065492b217d997a8b1155d28.zip
Fix minor errors found with debug mode on
Diffstat (limited to 'app/classes/PlanetItem.php')
-rw-r--r--app/classes/PlanetItem.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/classes/PlanetItem.php b/app/classes/PlanetItem.php
index 039d0ca..7d55781 100644
--- a/app/classes/PlanetItem.php
+++ b/app/classes/PlanetItem.php
@@ -4,14 +4,19 @@
* Planet item
*/
-class PlanetItem
+class PlanetItem extends SimplePie_Item
{
public function __construct($feed, $data)
{
- parent::SimplePie_Item($feed, $data);
+ parent::__construct($feed, $data);
}
- public function compare($item1, $item2)
+ /**
+ * @param PlanetItem $item1
+ * @param PlanetItem $item2
+ * @return int
+ */
+ public static function compare($item1, $item2)
{
$item1_date = $item1->get_date('U');
$item2_date = $item2->get_date('U');