Download plugins/CustomJsTracker/Tasks.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/CustomJsTracker/Tasks.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/CustomJsTracker/Tasks.php
-
curl -L -o Tasks.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/CustomJsTracker/Tasks.php
535 Bytes
| /** | |
| * 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\Plugins\CustomJsTracker; | |
| use Piwik\Container\StaticContainer; | |
| class Tasks extends \Piwik\Plugin\Tasks | |
| { | |
| public function schedule() | |
| { | |
| $this->hourly('updateTracker'); | |
| } | |
| public function updateTracker() | |
| { | |
| $updater = StaticContainer::get('Piwik\Plugins\CustomJsTracker\TrackerUpdater'); | |
| $updater->update(); | |
| } | |
| } | |