Download tests/PHPUnit/Framework/Mock/Plugin/CustomUserLogTable.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/Plugin/CustomUserLogTable.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/tests/PHPUnit/Framework/Mock/Plugin/CustomUserLogTable.php
-
curl -L -o CustomUserLogTable.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Framework/Mock/Plugin/CustomUserLogTable.php
457 Bytes
| namespace Piwik\Tests\Framework\Mock\Plugin; | |
| use Piwik\Tracker\LogTable; | |
| class CustomUserLogTable 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']; | |
| } | |
| } | |