/** * @since 2.0 * * @return SMWExporter */ public static function getInstance() { if (self::$instance === null) { self::$instance = new self(); self::$instance->initBaseURIs(); $cacheFactory = ApplicationFactory::getInstance()->newCacheFactory(); // There is no better way of getting around the static use without BC self::$dataItemToElementEncoder = new DataItemToElementEncoder(); self::$cachedDataItemToExpResourceEncoder = new CachedDataItemToExpResourceEncoder(ApplicationFactory::getInstance()->getStore(), $cacheFactory->newFixedInMemoryCache(500)); self::$cachedDataItemToExpResourceEncoder->setCachePrefix($cacheFactory->getCachePrefix()); } return self::$instance; }