/** * Constructor. * * @since 1.8 * @param SMWSQLStore3 $store */ public function __construct(SMWSQLStore3 $store) { $this->store = $store; // Yes, this is a hack, but we only use it for convenient debugging: self::$singleton_debug = $this; }
/** * Constructor. * * @since 1.8 * @param SMWSQLStore3 $store */ public function __construct(SMWSQLStore3 $store) { $this->store = $store; // Yes, this is a hack, but we only use it for convenient debugging: self::$singleton_debug = $this; $this->dataItemByIdFinder = new DataItemByIdFinder($this->store->getConnection('mw.db'), self::tableName, ApplicationFactory::getInstance()->newCacheFactory()->newFixedInMemoryCache()); $this->redirectInfoStore = new RedirectInfoStore($this->store->getConnection('mw.db'), ApplicationFactory::getInstance()->newCacheFactory()->newFixedInMemoryCache()); }
/** * Constructor. * * @since 1.8 * @param SMWSQLStore3 $store */ public function __construct(SMWSQLStore3 $store) { $this->store = $store; // Yes, this is a hack, but we only use it for convenient debugging: self::$singleton_debug = $this; // Either inject the class directly or an IdGeneratorFactory class instead $this->dataItemByIdFinder = new DataItemByIdFinder($this->store->getConnection('mw.db'), self::tableName); $this->redirectInfoStore = new RedirectInfoStore($this->store->getConnection('mw.db')); }
/** * Constructor. * * @since 1.8 * @param SMWSQLStore3 $store */ public function __construct(SMWSQLStore3 $store) { $this->store = $store; // Yes, this is a hack, but we only use it for convenient debugging: self::$singleton_debug = $this; $this->byIdDataItemFinder = new ByIdDataItemFinder($this->store->getConnection('mw.db')); $this->redirectInfoStore = new RedirectInfoStore($this->store->getConnection('mw.db')); }
/** * Constructor. * * @since 1.8 * @param SMWSQLStore3 $store */ public function __construct(SMWSQLStore3 $store, IdToDataItemMatchFinder $idToDataItemMatchFinder) { $this->store = $store; // Yes, this is a hack, but we only use it for convenient debugging: self::$singleton_debug = $this; $this->idToDataItemMatchFinder = $idToDataItemMatchFinder; $this->redirectInfoStore = new RedirectInfoStore($this->store->getConnection('mw.db')); $this->intermediaryIdCache = ApplicationFactory::getInstance()->getInMemoryPoolCache()->getPoolCacheFor(self::POOLCACHE_ID); }