/** * @since 2.0 * * @return SMWExporter */ public static function getInstance() { if (self::$instance === null) { self::$instance = new self(); self::$instance->initBaseURIs(); $applicationFactory = ApplicationFactory::getInstance(); $poolCache = $applicationFactory->getInMemoryPoolCache(); $poolCache->resetPoolCacheFor(self::POOLCACHE_ID); // FIXME with 3.x // There is no better way of getting around the static use without BC self::$dataItemToElementEncoder = new DataItemToElementEncoder(); self::$dispatchingResourceBuilder = new DispatchingResourceBuilder(); self::$dataItemToExpResourceEncoder = new DataItemToExpResourceEncoder($applicationFactory->getStore()); self::$dataItemToExpResourceEncoder->reset(); self::$dataItemToExpResourceEncoder->setBCAuxiliaryUse($applicationFactory->getSettings()->get('smwgExportBCAuxiliaryUse')); self::$dataItemByExpElementMatchFinder = new DataItemByExpElementMatchFinder($applicationFactory->getStore(), self::$m_ent_wiki); } return self::$instance; }