getMetadata() 공개 메소드

Loads reports metadata, then return the requested one, matching optional API parameters.
public getMetadata ( $idSite, $apiModule, $apiAction, $apiParameters = [], $language = false, $period = false, $date = false, $hideMetricsDoc = false, $showSubtableReports = false )
예제 #1
0
파일: API.php 프로젝트: piwik/piwik
 /**
  * Loads reports metadata, then return the requested one,
  * matching optional API parameters.
  */
 public function getMetadata($idSite, $apiModule, $apiAction, $apiParameters = array(), $language = false, $period = false, $date = false, $hideMetricsDoc = false, $showSubtableReports = false)
 {
     Piwik::checkUserHasViewAccess($idSite);
     if ($language) {
         /** @var Translator $translator */
         $translator = StaticContainer::get('Piwik\\Translation\\Translator');
         $translator->setCurrentLanguage($language);
     }
     $metadata = $this->processedReport->getMetadata($idSite, $apiModule, $apiAction, $apiParameters, $language, $period, $date, $hideMetricsDoc, $showSubtableReports);
     return $metadata;
 }
예제 #2
0
파일: API.php 프로젝트: KingNoosh/Teknik
 /**
  * Loads reports metadata, then return the requested one,
  * matching optional API parameters.
  */
 public function getMetadata($idSite, $apiModule, $apiAction, $apiParameters = array(), $language = false, $period = false, $date = false, $hideMetricsDoc = false, $showSubtableReports = false)
 {
     Translate::reloadLanguage($language);
     $reporter = new ProcessedReport();
     $metadata = $reporter->getMetadata($idSite, $apiModule, $apiAction, $apiParameters, $language, $period, $date, $hideMetricsDoc, $showSubtableReports);
     return $metadata;
 }