From: Raphaël Barrois Date: Fri, 19 Mar 2010 16:05:54 +0000 (+0100) Subject: Fix warning about abstract static functions X-Git-Tag: xorg/1.0.0~332^2~38 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b3c0f1653fe935b3220d06177a1e0fc396e7c29f;p=platal.git Fix warning about abstract static functions Signed-off-by: Raphaël Barrois --- diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index 567f5e2..486016f 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -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) {