From 17b4b7eedc671c1a65503307a95f53eaadb25876 Mon Sep 17 00:00:00 2001
From: Chris Leppanen <chris.leppanen@gmail.com>
Date: Sat, 17 Nov 2012 18:21:50 -0800
Subject: [PATCH] Move static method to member method.

---
 plugins/FeedsFetcher.inc   | 2 +-
 plugins/FeedsParser.inc    | 2 +-
 plugins/FeedsPlugin.inc    | 5 ++++-
 plugins/FeedsProcessor.inc | 2 +-
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/plugins/FeedsFetcher.inc b/plugins/FeedsFetcher.inc
index faca8639..33457de6 100644
--- a/plugins/FeedsFetcher.inc
+++ b/plugins/FeedsFetcher.inc
@@ -116,7 +116,7 @@ abstract class FeedsFetcher extends FeedsPlugin {
   /**
    * Implements FeedsPlugin::pluginType().
    */
-  public static function pluginType() {
+  public function pluginType() {
     return 'fetcher';
   }
 
diff --git a/plugins/FeedsParser.inc b/plugins/FeedsParser.inc
index d63ea432..8772e32e 100644
--- a/plugins/FeedsParser.inc
+++ b/plugins/FeedsParser.inc
@@ -56,7 +56,7 @@ abstract class FeedsParser extends FeedsPlugin {
   /**
    * Implements FeedsPlugin::pluginType().
    */
-  public static function pluginType() {
+  public function pluginType() {
     return 'parser';
   }
 
diff --git a/plugins/FeedsPlugin.inc b/plugins/FeedsPlugin.inc
index 97953ff2..ac63f2d4 100644
--- a/plugins/FeedsPlugin.inc
+++ b/plugins/FeedsPlugin.inc
@@ -35,7 +35,7 @@ abstract class FeedsPlugin extends FeedsConfigurable implements FeedsSourceInter
    * @return string
    *   One of either 'fetcher', 'parser', or 'processor'.
    */
-  abstract public static function pluginType();
+  abstract public function pluginType();
 
   /**
    * Save changes to the configuration of this object.
@@ -211,6 +211,9 @@ abstract class FeedsPlugin extends FeedsConfigurable implements FeedsSourceInter
  * Used when a plugin is missing.
  */
 class FeedsMissingPlugin extends FeedsPlugin {
+  public function pluginType() {
+    return 'missing';
+  }
   public function menuItem() {
     return array();
   }
diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc
index 33397f73..c0e1b602 100755
--- a/plugins/FeedsProcessor.inc
+++ b/plugins/FeedsProcessor.inc
@@ -32,7 +32,7 @@ abstract class FeedsProcessor extends FeedsPlugin {
   /**
    * Implements FeedsPlugin::pluginType().
    */
-  public static function pluginType() {
+  public function pluginType() {
     return 'processor';
   }
 
-- 
GitLab