Piwik\
Contains helper methods that can be used to get information regarding the server, its settings and currently used PHP settings.
The class defines the following methods:
isArchivePhpTriggered()
— Returns true if the current script execution was triggered by the cron archiving script.isMatomoForWordPress()
— Returns true if Matomo is running within Matomo for WordPress.isIIS()
— Returns true
if running on Microsoft IIS 7 (or above), false
if otherwise.isWindows()
— Returns true
if running on a Windows operating system, false
if otherwise.isTimezoneSupportEnabled()
— Returns true
if this PHP version/build supports timezone manipulation (e.g., php >= 5.2, or compiled with EXPERIMENTAL_DATE_SUPPORT=1 for php < 5.2).isGdExtensionEnabled()
— Returns true
if the GD PHP extension is available, false
if otherwise.isArchivePhpTriggered()
Returns true if the current script execution was triggered by the cron archiving script.
Helpful for error handling: directly throw error without HTML (eg. when DB is down).
bool
value.isMatomoForWordPress()
Returns true if Matomo is running within Matomo for WordPress.
bool
—
true if Matomo is running in WordPress, false if Matomo is running as part of On-PremiseisIIS()
Returns true
if running on Microsoft IIS 7 (or above), false
if otherwise.
bool
value.isWindows()
Since Matomo 0.6.5
Returns true
if running on a Windows operating system, false
if otherwise.
bool
value.isTimezoneSupportEnabled()
Returns true
if this PHP version/build supports timezone manipulation
(e.g., php >= 5.2, or compiled with EXPERIMENTAL_DATE_SUPPORT=1 for
php < 5.2).
bool
value.isGdExtensionEnabled()
Returns true
if the GD PHP extension is available, false
if otherwise.
Note: ImageGraph and the sparkline report visualization depend on the GD extension.
bool
value.