public function testCanConstructUsageStatisticsListLookup() { $instance = new SQLStoreFactory(new SMWSQLStore3()); $this->assertInstanceOf('SMW\\SQLStore\\ListLookup\\UsageStatisticsListLookup', $instance->newUsageStatisticsListLookup()); }
public function getStatistics() { $cachedListLookup = $this->factory->newCachedListLookup($this->factory->newUsageStatisticsListLookup(), self::$configuration->get('smwgStatisticsCache'), self::$configuration->get('smwgStatisticsCacheExpiry')); return $cachedListLookup->fetchList(); }