Esempio n. 1
0
 /**
  * Get data
  *
  * {@inheritdoc}
  */
 public function getData(NodeInterface $node = NULL, array $arguments)
 {
     $piwikData = $this->reportingService->getNodeStatistics($node, $this->controllerContext, $arguments);
     $data = array('data' => $piwikData);
     return $data;
 }
Esempio n. 2
0
 /**
  * Update a Piwik Site through the Piwik API
  *
  * @param array $piwikSite Site to be updated
  * @return void
  */
 public function updateSiteAction(array $piwikSite)
 {
     $this->reportingService->callAPI('SitesManager.updateSite', $piwikSite);
     $this->redirect('index');
 }