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