/**
  * Update all charts for all users
  */
 public function updateChartsForUsers()
 {
     $users = $this->users->getSystemUsers();
     foreach ($users as $userName) {
         $this->updateChartsForUser($userName);
     }
 }
 /**
  * Update all charts for all users
  */
 public function updateChartsForUsers()
 {
     $users = $this->users->getSystemUsers();
     foreach ($users as $userName) {
         $this->updateChartsForUser($userName);
     }
     $this->contentStatisticsClient->push();
 }
 /**
  * Return the chart data you want to return based on the ChartConfig
  *
  * @return array
  */
 public function getChartUsage()
 {
     $return = array();
     if ($this->user->isAdminUser($this->user->getSignedInUsername())) {
         $users = $this->users->getSystemUsers();
         foreach ($users as $username) {
             $return[$username] = $this->getCollectionByUsername($username);
         }
     } else {
         $username = $this->chartConfig->getUsername();
         $return[$username] = $this->getCollectionByUsername($username);
     }
     return $return;
 }