Download core/Policy/CnilPolicy.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 2.36 kB
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/core/Policy/CnilPolicy.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/core/Policy/CnilPolicy.php
-
curl -L -o CnilPolicy.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/core/Policy/CnilPolicy.php
2.36 kB
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| namespace Piwik\Policy; | |
| use Piwik\Piwik; | |
| use Piwik\Url; | |
| class CnilPolicy extends CompliancePolicy | |
| { | |
| public static function getName(): string | |
| { | |
| return 'cnil_v1'; | |
| } | |
| public static function generateDescription(): string | |
| { | |
| return Piwik::translate('General_ComplianceCNILDescription', [ | |
| '<a href="' . | |
| Url::addCampaignParametersToMatomoLink( | |
| 'https://matomo.org/faq/how-to/how-do-i-configure-matomo-without-tracking-consent-for-french-visitors-cnil-exemption/', | |
| null, | |
| null, | |
| 'App.PrivacyManager.compliance' | |
| ) . | |
| '" target="_blank" rel="noreferrer noopener">', | |
| '</a>', | |
| '<a href="' . | |
| Url::addCampaignParametersToMatomoLink( | |
| 'https://matomo.org/faq/how-to/how-do-i-configure-matomo-without-tracking-consent-for-french-visitors-cnil-exemption/', | |
| null, | |
| null, | |
| 'App.PrivacyManager.compliance' | |
| ) . | |
| '" target="_blank" rel="noreferrer noopener">', | |
| '</a>', | |
| ]); | |
| } | |
| protected static function generateWarnings(): string | |
| { | |
| return Piwik::translate('General_ComplianceCNILWarning'); | |
| } | |
| public static function getTitle(): string | |
| { | |
| return Piwik::translate('General_ComplianceCNILTitle'); | |
| } | |
| public static function getUnknownSettings(): array | |
| { | |
| return [ | |
| [ | |
| 'title' => Piwik::translate('General_ComplianceCNILUnknownSettingOptOutTitle'), | |
| 'note' => | |
| Piwik::translate('General_ComplianceCNILUnknownSettingOptOutNotes', [ | |
| '<a href="' . | |
| Url::addCampaignParametersToMatomoLink( | |
| 'https://matomo.org/faq/general/faq_20000/', | |
| null, | |
| null, | |
| 'App.PrivacyManager.compliance' | |
| ) . | |
| '" target="_blank" rel="noreferrer noopener">', | |
| '</a>', | |
| ]), | |
| ], | |
| ]; | |
| } | |
| } | |