Méthode |
Description |
|
__construct ( SettingsProvider $settingsProvider, ProcessedReport $processedReport ) |
|
|
get ( $idSite, $period, $date, $segment = false, $columns = false ) |
Get a combined report of the *.get API methods. |
|
getAvailableMeasurableTypes ( ) : array |
Returns all available measurable types. |
|
getBulkRequest ( array $urls ) : array |
Performs multiple API requests at once and returns every result. |
|
getDefaultMetricTranslations ( ) : array |
Default translations for many core metrics. |
|
getGlossaryMetrics ( $idSite ) : array |
A glossary of all metrics and their definition |
|
getGlossaryReports ( $idSite ) : array |
A glossary of all reports and their definition |
|
getHeaderLogoUrl ( boolean $pathOnly = false ) : string |
Returns the url to header logo (~127x50px) |
|
getIpFromHeader ( ) : string |
Returns the most accurate IP address available for the current user, in
IPv4 format. This could be the proxy client's IP address. |
|
getLogoUrl ( boolean $pathOnly = false ) : string |
Returns the url to application logo (~280x110px) |
|
getMetadata ( $idSite, $apiModule, $apiAction, $apiParameters = [], $language = false, $period = false, $date = false, $hideMetricsDoc = false, $showSubtableReports = false ) |
Loads reports metadata, then return the requested one,
matching optional API parameters. |
|
getPiwikVersion ( ) : string |
Get Piwik version |
|
getProcessedReport ( $idSite, $period, $date, $apiModule, $apiAction, $segment = false, $apiParameters = false, $idGoal = false, $language = false, $showTimer = true, $hideMetricsDoc = false, $idSubtable = false, $showRawMetrics = false, $format_metrics = null, $idDimension = false ) |
|
|
getReportMetadata ( string $idSites = '', boolean | string $period = false, boolean | Date $date = false, boolean $hideMetricsDoc = false, boolean $showSubtableReports = false, integer $idSite = false ) : array |
Triggers a hook to ask plugins for available Reports. |
|
getReportPagesMetadata ( integer $idSite ) : array |
Get a list of all pages that shall be shown in a Piwik UI including a list of all widgets that shall
be shown within each page. |
|
getRowEvolution ( integer $idSite, string $period, Date $date, string $apiModule, string $apiAction, boolean | string $label = false, boolean | string $segment = false, boolean | string $column = false, boolean | string $language = false, boolean | integer $idGoal = false, boolean | string $legendAppendMetric = true, boolean | string $labelUseAbsoluteUrl = true, boolean | integer $idDimension = false ) : array |
Given an API report to query (eg. "Referrers.getKeywords", and a Label (eg. "free%20software"),
this function will query the API for the previous days/weeks/etc. and will return
a ready to use data structure containing the metrics for the requested Label, along with enriched information (min/max values, etc.) |
|
getSVGLogoUrl ( boolean $pathOnly = false ) : string |
Returns the URL to application SVG Logo |
|
getSegmentsMetadata ( $idSites = [], $_hideImplementationData = true ) |
|
|
getSettings ( ) : array |
Returns the section [APISettings] if defined in config.ini.php |
|
getSuggestedValuesForSegment ( $segmentName, $idSite ) : array |
Given a segment, will return a list of the most used values for this particular segment. |
|
getWidgetMetadata ( integer $idSite ) : array |
Get a list of all widgetizable widgets. |
|
hasSVGLogo ( ) : boolean |
Returns whether there is an SVG Logo available. |
|
isPluginActivated ( string $pluginName ) : boolean |
Return true if plugin is activated, false otherwise |
|