<?php // $Id$ /** * Abstract class, defines shared functionality between fetchers. * * Implements FeedsSourceInfoInterface to expose source forms to Feeds. */ abstract class FeedsFetcher extends FeedsPlugin { /** * Fetch content from a source and return it. * * Every class that extends FeedsFetcher must implement this method. * * @param $source * Source value as entered by user through sourceForm(). */ public abstract function fetch(FeedsSource $source); /** * Clear all caches for results for given source. * * @param FeedsSource $source * Source information for this expiry. Implementers can choose to only clear * caches pertaining to this source. */ public function clear(FeedsSource $source) {} }