Download plugins/ExampleLogTables/Tracker/LogTable/CustomUserLog.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/ExampleLogTables/Tracker/LogTable/CustomUserLog.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/plugins/ExampleLogTables/Tracker/LogTable/CustomUserLog.php
-
curl -L -o CustomUserLog.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/plugins/ExampleLogTables/Tracker/LogTable/CustomUserLog.php
621 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\ExampleLogTables\Tracker\LogTable; | |
| use Piwik\Tracker\LogTable; | |
| class CustomUserLog extends LogTable | |
| { | |
| public function getName() | |
| { | |
| return 'log_custom'; | |
| } | |
| public function getIdColumn() | |
| { | |
| return 'user_id'; | |
| } | |
| public function getPrimaryKey() | |
| { | |
| return ['user_id']; | |
| } | |
| public function getWaysToJoinToOtherLogTables() | |
| { | |
| return ['log_visit' => 'user_id']; | |
| } | |
| } | |