Fix warning about abstract static functions
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 19 Mar 2010 16:05:54 +0000 (17:05 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 22 Mar 2010 12:49:29 +0000 (13:49 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/profilefields.inc.php

index 567f5e2..486016f 100644 (file)
@@ -34,8 +34,12 @@ abstract class ProfileField
      * @param $pids An array of pids
      * @param $visibility The level of visibility fetched fields must have
      * @return a PlIterator yielding data suitable for a "new ProfileBlah($data)"
+     * XXX MUST be reimplemented for each kind of ProfileField
      */
-    abstract public static function fetchData(array $pids, $visibility);
+    public static function fetchData(array $pids, $visibility)
+    {
+        return PlIteratorUtils::emptyIterator();
+    }
 
     public static function buildForPID($cls, $pid, $visibility)
     {