قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-22 15:07:44 +00:00

* Make it possible to define joins for log tables using getWaysToJoinToOtherLogTables * Adds some tests for custom log table joins * add missing log tables joined using getWaysToJoinToOtherLogTables * automatically add log tables up the hierarchy * code improvements * Adds new ExampleLogTables plugin giving a showcase for custom log tables * specifiy table name in userid archiver to fix query if custom log table joins on user_id column * fix tests * Adds log table that does only indirectly join with log_visit * Allow defining joins on visit and action * update ui files
29 خطوط
472 B
PHP
29 خطوط
472 B
PHP
<?php
|
|
|
|
namespace Piwik\Tests\Framework\Mock\Plugin;
|
|
|
|
use Piwik\Tracker\LogTable;
|
|
|
|
class OtherCustomUserLogTable extends LogTable
|
|
{
|
|
public function getName()
|
|
{
|
|
return 'log_custom_other';
|
|
}
|
|
|
|
public function getIdColumn()
|
|
{
|
|
return 'other_id';
|
|
}
|
|
|
|
public function getPrimaryKey()
|
|
{
|
|
return ['other_id'];
|
|
}
|
|
|
|
public function getWaysToJoinToOtherLogTables()
|
|
{
|
|
return ['log_custom' => 'other_id'];
|
|
}
|
|
}
|