/** * Update all charts for one specific user * @param string $userName */ private function updateChartsForUser($userName) { $provider = $this->dataProviderFactory->getDataProviderByConfig($this->getDefaultChartConfig($userName)); $storageUsage = $provider->getChartUsageForUpdate(); $storage = $this->mapStorageUsageToStorageInformation($storageUsage); $this->contentStatisticsClient->commit($storage); }
/** * @param string $event */ public static function logActivity($event) { if (!self::$sendActivity) { return; } $user = new User(); $activity = new Activity($user->getSignedInUsername(), 'file:' . $event); self::$contentStatisticsClient->commit($activity); self::$contentStatisticsClient->push(); }