/**
  * (non-PHPdoc)
  * @see src/lib/Faett/Piwik/Decoder/Interfaces/Faett_Piwik_Decoder_Interfaces_Decoder#decode($params)
  */
 public function decode(array $params)
 {
     // check of the piwik API can be invoked and read the data
     $toDecode = @file_get_contents($piwikUrl = $this->_service->build($params));
     // check if the data can be loaded successfully
     if ($toDecode === false) {
         throw new Exception('Invalid piwik URL ' . $piwikUrl . ' specified');
     }
     // load, decode and return the data
     return Zend_Json::decode($toDecode, Zend_Json::TYPE_ARRAY);
 }