Download plugins/BotTracking/Columns/Metrics/PageRequests.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/BotTracking/Columns/Metrics/PageRequests.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/BotTracking/Columns/Metrics/PageRequests.php
-
curl -L -o PageRequests.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/BotTracking/Columns/Metrics/PageRequests.php
1.06 kB
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| declare(strict_types=1); | |
| namespace Piwik\Plugins\BotTracking\Columns\Metrics; | |
| use Piwik\Columns\Dimension; | |
| use Piwik\Metrics\Formatter; | |
| use Piwik\Piwik; | |
| use Piwik\Plugin\AggregatedMetric; | |
| use Piwik\Plugins\BotTracking\Metrics; | |
| class PageRequests extends AggregatedMetric | |
| { | |
| public function getName() | |
| { | |
| return Metrics::COLUMN_PAGE_REQUESTS; | |
| } | |
| public function getTranslatedName() | |
| { | |
| return Piwik::translate('BotTracking_ColumnPageRequests'); | |
| } | |
| public function getDocumentation() | |
| { | |
| return Piwik::translate('BotTracking_ColumnPageRequestsDocumentation'); | |
| } | |
| /** | |
| * @param int $value | |
| * @return string | |
| */ | |
| public function format($value, Formatter $formatter) | |
| { | |
| return $formatter->getPrettyNumber($value); | |
| } | |
| public function getSemanticType(): ?string | |
| { | |
| return Dimension::TYPE_NUMBER; | |
| } | |
| } | |