add icons for Character groups
This commit is contained in:
commit
2d9a41a5fe
3461 changed files with 594457 additions and 0 deletions
1
www/analytics/plugins/DBStats/.gitignore
vendored
Normal file
1
www/analytics/plugins/DBStats/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
tests/UI/processed-ui-screenshots
|
||||
283
www/analytics/plugins/DBStats/API.php
Normal file
283
www/analytics/plugins/DBStats/API.php
Normal file
|
|
@ -0,0 +1,283 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\DBStats;
|
||||
|
||||
use Piwik\Common;
|
||||
use Piwik\DataTable;
|
||||
use Piwik\Piwik;
|
||||
|
||||
/**
|
||||
* @see plugins/DBStats/MySQLMetadataProvider.php
|
||||
*/
|
||||
require_once PIWIK_INCLUDE_PATH . '/plugins/DBStats/MySQLMetadataProvider.php';
|
||||
|
||||
/**
|
||||
* DBStats API is used to request the overall status of the Mysql tables in use by Piwik.
|
||||
*
|
||||
* @method static \Piwik\Plugins\DBStats\API getInstance()
|
||||
*/
|
||||
class API extends \Piwik\Plugin\API
|
||||
{
|
||||
/**
|
||||
* The MySQLMetadataProvider instance that fetches table/db status information.
|
||||
*/
|
||||
private $metadataProvider;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
protected function __construct()
|
||||
{
|
||||
$this->metadataProvider = new MySQLMetadataProvider();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets some general information about this Piwik installation, including the count of
|
||||
* websites tracked, the count of users and the total space used by the database.
|
||||
*
|
||||
* @return array Contains the website count, user count and total space used by the database.
|
||||
*/
|
||||
public function getGeneralInformation()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
// calculate total size
|
||||
$totalSpaceUsed = 0;
|
||||
foreach ($this->metadataProvider->getAllTablesStatus() as $status) {
|
||||
$totalSpaceUsed += $status['Data_length'] + $status['Index_length'];
|
||||
}
|
||||
|
||||
$siteTableStatus = $this->metadataProvider->getTableStatus('site');
|
||||
$userTableStatus = $this->metadataProvider->getTableStatus('user');
|
||||
|
||||
$siteCount = $siteTableStatus['Rows'];
|
||||
$userCount = $userTableStatus['Rows'];
|
||||
|
||||
return array($siteCount, $userCount, $totalSpaceUsed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets general database info that is not specific to any table.
|
||||
*
|
||||
* @return array See http://dev.mysql.com/doc/refman/5.1/en/show-status.html .
|
||||
*/
|
||||
public function getDBStatus()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->metadataProvider->getDBStatus();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable summarizing how data is distributed among Piwik tables.
|
||||
*
|
||||
* This function will group tracker tables, numeric archive tables, blob archive tables
|
||||
* and other tables together so only four rows are shown.
|
||||
*
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getDatabaseUsageSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
|
||||
$emptyRow = array('data_size' => 0, 'index_size' => 0, 'row_count' => 0);
|
||||
$rows = array(
|
||||
'tracker_data' => $emptyRow,
|
||||
'metric_data' => $emptyRow,
|
||||
'report_data' => $emptyRow,
|
||||
'other_data' => $emptyRow
|
||||
);
|
||||
|
||||
foreach ($this->metadataProvider->getAllTablesStatus() as $status) {
|
||||
if ($this->isNumericArchiveTable($status['Name'])) {
|
||||
$rowToAddTo = & $rows['metric_data'];
|
||||
} else if ($this->isBlobArchiveTable($status['Name'])) {
|
||||
$rowToAddTo = & $rows['report_data'];
|
||||
} else if ($this->isTrackerTable($status['Name'])) {
|
||||
$rowToAddTo = & $rows['tracker_data'];
|
||||
} else {
|
||||
$rowToAddTo = & $rows['other_data'];
|
||||
}
|
||||
|
||||
$rowToAddTo['data_size'] += $status['Data_length'];
|
||||
$rowToAddTo['index_size'] += $status['Index_length'];
|
||||
$rowToAddTo['row_count'] += $status['Rows'];
|
||||
}
|
||||
|
||||
return DataTable::makeFromIndexedArray($rows);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable describing how much space is taken up by each log table.
|
||||
*
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getTrackerDataSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->getTablesSummary($this->metadataProvider->getAllLogTableStatus());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable describing how much space is taken up by each numeric
|
||||
* archive table.
|
||||
*
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getMetricDataSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->getTablesSummary($this->metadataProvider->getAllNumericArchiveStatus());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable describing how much space is taken up by each numeric
|
||||
* archive table, grouped by year.
|
||||
*
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getMetricDataSummaryByYear()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
|
||||
$dataTable = $this->getMetricDataSummary();
|
||||
|
||||
$dataTable->filter('GroupBy', array('label', __NAMESPACE__ . '\API::getArchiveTableYear'));
|
||||
|
||||
return $dataTable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable describing how much space is taken up by each blob
|
||||
* archive table.
|
||||
*
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getReportDataSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->getTablesSummary($this->metadataProvider->getAllBlobArchiveStatus());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable describing how much space is taken up by each blob
|
||||
* archive table, grouped by year.
|
||||
*
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getReportDataSummaryByYear()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
|
||||
$dataTable = $this->getReportDataSummary();
|
||||
|
||||
$dataTable->filter('GroupBy', array('label', __NAMESPACE__ . '\API::getArchiveTableYear'));
|
||||
|
||||
return $dataTable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable describing how much space is taken up by 'admin' tables.
|
||||
*
|
||||
* An 'admin' table is a table that is not central to analytics functionality.
|
||||
* So any table that isn't an archive table or a log table is an 'admin' table.
|
||||
*
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getAdminDataSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->getTablesSummary($this->metadataProvider->getAllAdminTableStatus());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable describing how much total space is taken up by each
|
||||
* individual report type.
|
||||
*
|
||||
* Goal reports and reports of the format .*_[0-9]+ are grouped together.
|
||||
*
|
||||
* @param bool $forceCache false to use the cached result, true to run the queries again and
|
||||
* cache the result.
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getIndividualReportsSummary($forceCache = false)
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->metadataProvider->getRowCountsAndSizeByBlobName($forceCache);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable describing how much total space is taken up by each
|
||||
* individual metric type.
|
||||
*
|
||||
* Goal metrics, metrics of the format .*_[0-9]+ and 'done...' metrics are grouped together.
|
||||
*
|
||||
* @param bool $forceCache false to use the cached result, true to run the queries again and
|
||||
* cache the result.
|
||||
* @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
|
||||
*/
|
||||
public function getIndividualMetricsSummary($forceCache = false)
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->metadataProvider->getRowCountsAndSizeByMetricName($forceCache);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a datatable representation of a set of table statuses.
|
||||
*
|
||||
* @param array $statuses The table statuses to summarize.
|
||||
* @return DataTable
|
||||
*/
|
||||
private function getTablesSummary($statuses)
|
||||
{
|
||||
$dataTable = new DataTable();
|
||||
foreach ($statuses as $status) {
|
||||
$dataTable->addRowFromSimpleArray(array(
|
||||
'label' => $status['Name'],
|
||||
'data_size' => $status['Data_length'],
|
||||
'index_size' => $status['Index_length'],
|
||||
'row_count' => $status['Rows']
|
||||
));
|
||||
}
|
||||
return $dataTable;
|
||||
}
|
||||
|
||||
/** Returns true if $name is the name of a numeric archive table, false if otherwise. */
|
||||
private function isNumericArchiveTable($name)
|
||||
{
|
||||
return strpos($name, Common::prefixTable('archive_numeric_')) === 0;
|
||||
}
|
||||
|
||||
/** Returns true if $name is the name of a blob archive table, false if otherwise. */
|
||||
private function isBlobArchiveTable($name)
|
||||
{
|
||||
return strpos($name, Common::prefixTable('archive_blob_')) === 0;
|
||||
}
|
||||
|
||||
/** Returns true if $name is the name of a log table, false if otherwise. */
|
||||
private function isTrackerTable($name)
|
||||
{
|
||||
return strpos($name, Common::prefixTable('log_')) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the year of an archive table from its name.
|
||||
*
|
||||
* @param string $tableName
|
||||
*
|
||||
* @return string the year
|
||||
* @ignore
|
||||
*/
|
||||
public static function getArchiveTableYear($tableName)
|
||||
{
|
||||
if (preg_match("/archive_(?:numeric|blob)_([0-9]+)_/", $tableName, $matches) === 0) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $matches[1];
|
||||
}
|
||||
}
|
||||
160
www/analytics/plugins/DBStats/Controller.php
Normal file
160
www/analytics/plugins/DBStats/Controller.php
Normal file
|
|
@ -0,0 +1,160 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\DBStats;
|
||||
|
||||
use Piwik\MetricsFormatter;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\View;
|
||||
use Piwik\ViewDataTable\Factory;
|
||||
|
||||
/**
|
||||
*/
|
||||
class Controller extends \Piwik\Plugin\ControllerAdmin
|
||||
{
|
||||
/**
|
||||
* Returns the index for this plugin. Shows every other report defined by this plugin,
|
||||
* except the '...ByYear' reports. These can be loaded as related reports.
|
||||
*
|
||||
* Also, the 'getIndividual...Summary' reports are loaded by AJAX, as they can take
|
||||
* a significant amount of time to load on setups w/ lots of websites.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
$view = new View('@DBStats/index');
|
||||
$this->setBasicVariablesView($view);
|
||||
|
||||
$view->databaseUsageSummary = $this->getDatabaseUsageSummary(true);
|
||||
$view->trackerDataSummary = $this->getTrackerDataSummary(true);
|
||||
$view->metricDataSummary = $this->getMetricDataSummary(true);
|
||||
$view->reportDataSummary = $this->getReportDataSummary(true);
|
||||
$view->adminDataSummary = $this->getAdminDataSummary(true);
|
||||
|
||||
list($siteCount, $userCount, $totalSpaceUsed) = API::getInstance()->getGeneralInformation();
|
||||
$view->siteCount = MetricsFormatter::getPrettyNumber($siteCount);
|
||||
$view->userCount = MetricsFormatter::getPrettyNumber($userCount);
|
||||
$view->totalSpaceUsed = MetricsFormatter::getPrettySizeFromBytes($totalSpaceUsed);
|
||||
|
||||
return $view->render();
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays how much space the tracker tables, numeric
|
||||
* archive tables, report tables and other tables take up in the MySQL database.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDatabaseUsageSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays the amount of space each individual log table
|
||||
* takes up in the MySQL database.
|
||||
* @return string|void
|
||||
*/
|
||||
public function getTrackerDataSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays the amount of space each numeric archive table
|
||||
* takes up in the MySQL database.
|
||||
*
|
||||
* @return string|void
|
||||
*/
|
||||
public function getMetricDataSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays the amount of space each numeric archive table
|
||||
* takes up in the MySQL database, for each year of numeric data.
|
||||
*
|
||||
* @return string|void
|
||||
*/
|
||||
public function getMetricDataSummaryByYear()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays the amount of space each blob archive table
|
||||
* takes up in the MySQL database.
|
||||
*
|
||||
* @return string|void
|
||||
*/
|
||||
public function getReportDataSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays the amount of space each blob archive table
|
||||
* takes up in the MySQL database, for each year of blob data.
|
||||
*
|
||||
* @return string|void
|
||||
*/
|
||||
public function getReportDataSummaryByYear()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays how many occurances there are of each individual
|
||||
* report type stored in the MySQL database.
|
||||
*
|
||||
* Goal reports and reports of the format: .*_[0-9]+ are grouped together.
|
||||
*
|
||||
* @return string|void
|
||||
*/
|
||||
public function getIndividualReportsSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays how many occurances there are of each individual
|
||||
* metric type stored in the MySQL database.
|
||||
*
|
||||
* Goal metrics, metrics of the format .*_[0-9]+ and 'done...' metrics are grouped together.
|
||||
*
|
||||
* @return string|void
|
||||
*/
|
||||
public function getIndividualMetricsSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a datatable that displays the amount of space each 'admin' table takes
|
||||
* up in the MySQL database.
|
||||
*
|
||||
* An 'admin' table is a table that is not central to analytics functionality.
|
||||
* So any table that isn't an archive table or a log table is an 'admin' table.
|
||||
*
|
||||
* @return string|void
|
||||
*/
|
||||
public function getAdminDataSummary()
|
||||
{
|
||||
Piwik::checkUserHasSuperUserAccess();
|
||||
return $this->renderReport(__FUNCTION__);
|
||||
}
|
||||
}
|
||||
386
www/analytics/plugins/DBStats/DBStats.php
Normal file
386
www/analytics/plugins/DBStats/DBStats.php
Normal file
|
|
@ -0,0 +1,386 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\DBStats;
|
||||
|
||||
use Piwik\Date;
|
||||
use Piwik\Menu\MenuAdmin;
|
||||
use Piwik\Option;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Pie;
|
||||
use Piwik\ScheduledTask;
|
||||
use Piwik\ScheduledTime\Weekly;
|
||||
use Piwik\ScheduledTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class DBStats extends \Piwik\Plugin
|
||||
{
|
||||
const TIME_OF_LAST_TASK_RUN_OPTION = 'dbstats_time_of_last_cache_task_run';
|
||||
|
||||
/**
|
||||
* @see Piwik\Plugin::getListHooksRegistered
|
||||
*/
|
||||
public function getListHooksRegistered()
|
||||
{
|
||||
return array(
|
||||
'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
|
||||
'Menu.Admin.addItems' => 'addMenu',
|
||||
'TaskScheduler.getScheduledTasks' => 'getScheduledTasks',
|
||||
'ViewDataTable.configure' => 'configureViewDataTable',
|
||||
'ViewDataTable.getDefaultType' => 'getDefaultTypeViewDataTable',
|
||||
"TestingEnvironment.addHooks" => 'setupTestEnvironment'
|
||||
);
|
||||
}
|
||||
|
||||
function addMenu()
|
||||
{
|
||||
MenuAdmin::getInstance()->add('CoreAdminHome_MenuDiagnostic', 'DBStats_DatabaseUsage',
|
||||
array('module' => 'DBStats', 'action' => 'index'),
|
||||
Piwik::hasUserSuperUserAccess(),
|
||||
$order = 6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all scheduled tasks executed by this plugin.
|
||||
*/
|
||||
public function getScheduledTasks(&$tasks)
|
||||
{
|
||||
$cacheDataByArchiveNameReportsTask = new ScheduledTask(
|
||||
$this,
|
||||
'cacheDataByArchiveNameReports',
|
||||
null,
|
||||
ScheduledTime::factory('weekly'),
|
||||
ScheduledTask::LOWEST_PRIORITY
|
||||
);
|
||||
$tasks[] = $cacheDataByArchiveNameReportsTask;
|
||||
}
|
||||
|
||||
/**
|
||||
* Caches the intermediate DataTables used in the getIndividualReportsSummary and
|
||||
* getIndividualMetricsSummary reports in the option table.
|
||||
*/
|
||||
public function cacheDataByArchiveNameReports()
|
||||
{
|
||||
$api = API::getInstance();
|
||||
$api->getIndividualReportsSummary(true);
|
||||
$api->getIndividualMetricsSummary(true);
|
||||
|
||||
$now = Date::now()->getLocalized("%longYear%, %shortMonth% %day%");
|
||||
Option::set(self::TIME_OF_LAST_TASK_RUN_OPTION, $now);
|
||||
}
|
||||
|
||||
public function getStylesheetFiles(&$stylesheets)
|
||||
{
|
||||
$stylesheets[] = "plugins/DBStats/stylesheets/dbStatsTable.less";
|
||||
}
|
||||
|
||||
/** Returns the date when the cacheDataByArchiveNameReports was last run. */
|
||||
public static function getDateOfLastCachingRun()
|
||||
{
|
||||
return Option::get(self::TIME_OF_LAST_TASK_RUN_OPTION);
|
||||
}
|
||||
|
||||
public function getDefaultTypeViewDataTable(&$defaultViewTypes)
|
||||
{
|
||||
$defaultViewTypes['DBStats.getDatabaseUsageSummary'] = Pie::ID;
|
||||
$defaultViewTypes['DBStats.getTrackerDataSummary'] = HtmlTable::ID;
|
||||
$defaultViewTypes['DBStats.getMetricDataSummary'] = HtmlTable::ID;
|
||||
$defaultViewTypes['DBStats.getMetricDataSummaryByYear'] = HtmlTable::ID;
|
||||
$defaultViewTypes['DBStats.getReportDataSummary'] = HtmlTable::ID;
|
||||
$defaultViewTypes['DBStats.getReportDataSummaryByYear'] = HtmlTable::ID;
|
||||
$defaultViewTypes['DBStats.getIndividualReportsSummary'] = HtmlTable::ID;
|
||||
$defaultViewTypes['DBStats.getIndividualMetricsSummary'] = HtmlTable::ID;
|
||||
$defaultViewTypes['DBStats.getAdminDataSummary'] = HtmlTable::ID;
|
||||
}
|
||||
|
||||
public function configureViewDataTable(ViewDataTable $view)
|
||||
{
|
||||
switch ($view->requestConfig->apiMethodToRequestDataTable) {
|
||||
case 'DBStats.getDatabaseUsageSummar':
|
||||
$this->configureViewForGetDatabaseUsageSummary($view);
|
||||
break;
|
||||
case 'DBStats.getTrackerDataSummary':
|
||||
$this->configureViewForGetTrackerDataSummary($view);
|
||||
break;
|
||||
case 'DBStats.getMetricDataSummary':
|
||||
$this->configureViewForGetMetricDataSummary($view);
|
||||
break;
|
||||
case 'DBStats.getMetricDataSummaryByYear':
|
||||
$this->configureViewForGetMetricDataSummaryByYear($view);
|
||||
break;
|
||||
case 'DBStats.getReportDataSummary':
|
||||
$this->configureViewForGetReportDataSummary($view);
|
||||
break;
|
||||
case 'DBStats.getReportDataSummaryByYear':
|
||||
$this->configureViewForGetReportDataSummaryByYear($view);
|
||||
break;
|
||||
case 'DBStats.getIndividualReportsSummary':
|
||||
$this->configureViewForGetIndividualReportsSummary($view);
|
||||
break;
|
||||
case 'DBStats.getIndividualMetricsSummary':
|
||||
$this->configureViewForGetIndividualMetricsSummary($view);
|
||||
break;
|
||||
case 'DBStats.getAdminDataSummary':
|
||||
$this->configureViewForGetAdminDataSummary($view);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private function configureViewForGetDatabaseUsageSummary(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view, $addTotalSizeColumn = true, $addPercentColumn = true);
|
||||
|
||||
$view->config->show_offset_information = false;
|
||||
$view->config->show_pagination_control = false;
|
||||
|
||||
if ($view->isViewDataTableId(Graph::ID)) {
|
||||
$view->config->show_all_ticks = true;
|
||||
}
|
||||
|
||||
// translate the labels themselves
|
||||
$valueToTranslationStr = array(
|
||||
'tracker_data' => 'DBStats_TrackerTables',
|
||||
'report_data' => 'DBStats_ReportTables',
|
||||
'metric_data' => 'DBStats_MetricTables',
|
||||
'other_data' => 'DBStats_OtherTables'
|
||||
);
|
||||
|
||||
$translateSummaryLabel = function ($value) use ($valueToTranslationStr) {
|
||||
return isset($valueToTranslationStr[$value])
|
||||
? Piwik::translate($valueToTranslationStr[$value])
|
||||
: $value;
|
||||
};
|
||||
|
||||
$view->config->filters[] = array('ColumnCallbackReplace', array('label', $translateSummaryLabel), $isPriority = true);
|
||||
}
|
||||
|
||||
private function configureViewForGetTrackerDataSummary(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view);
|
||||
|
||||
$view->requestConfig->filter_sort_order = 'asc';
|
||||
$view->config->show_offset_information = false;
|
||||
$view->config->show_pagination_control = false;
|
||||
}
|
||||
|
||||
private function configureViewForGetMetricDataSummary(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view);
|
||||
|
||||
$view->config->title = Piwik::translate('DBStats_MetricTables');
|
||||
$view->config->addRelatedReports(array(
|
||||
'DBStats.getMetricDataSummaryByYear' => Piwik::translate('DBStats_MetricDataByYear')
|
||||
));
|
||||
}
|
||||
|
||||
private function configureViewForGetMetricDataSummaryByYear(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view);
|
||||
|
||||
$view->config->title = Piwik::translate('DBStats_MetricDataByYear');
|
||||
$view->config->addTranslation('label', Piwik::translate('CoreHome_PeriodYear'));
|
||||
$view->config->addRelatedReports(array(
|
||||
'DBStats.getMetricDataSummary' => Piwik::translate('DBStats_MetricTables')
|
||||
));
|
||||
}
|
||||
|
||||
private function configureViewForGetReportDataSummary(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view);
|
||||
|
||||
$view->config->title = Piwik::translate('DBStats_ReportTables');
|
||||
$view->config->addRelatedReports(array(
|
||||
'DBStats.getReportDataSummaryByYear' => Piwik::translate('DBStats_ReportDataByYear')
|
||||
));
|
||||
}
|
||||
|
||||
private function configureViewForGetReportDataSummaryByYear(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view);
|
||||
|
||||
$view->config->title = Piwik::translate('DBStats_ReportDataByYear');
|
||||
$view->config->addTranslation('label', Piwik::translate('CoreHome_PeriodYear'));
|
||||
$view->config->addRelatedReports(array(
|
||||
'DBStats.getReportDataSummary' => Piwik::translate('DBStats_ReportTables')
|
||||
));
|
||||
}
|
||||
|
||||
private function configureViewForGetIndividualReportsSummary(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view, $addTotalSizeColumn = false, $addPercentColumn = false,
|
||||
$sizeColumns = array('estimated_size'));
|
||||
|
||||
$view->requestConfig->filter_sort_order = 'asc';
|
||||
$view->config->addTranslation('label', Piwik::translate('General_Report'));
|
||||
|
||||
// this report table has some extra columns that shouldn't be shown
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$view->config->columns_to_display = array('label', 'row_count', 'estimated_size');
|
||||
}
|
||||
|
||||
$this->setIndividualSummaryFooterMessage($view);
|
||||
}
|
||||
|
||||
private function configureViewForGetIndividualMetricsSummary(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view, $addTotalSizeColumn = false, $addPercentColumn = false,
|
||||
$sizeColumns = array('estimated_size'));
|
||||
|
||||
$view->requestConfig->filter_sort_order = 'asc';
|
||||
$view->config->addTranslation('label', Piwik::translate('General_Metric'));
|
||||
|
||||
$this->setIndividualSummaryFooterMessage($view);
|
||||
}
|
||||
|
||||
private function configureViewForGetAdminDataSummary(ViewDataTable $view)
|
||||
{
|
||||
$this->addBaseDisplayProperties($view);
|
||||
$this->addPresentationFilters($view);
|
||||
|
||||
$view->requestConfig->filter_sort_order = 'asc';
|
||||
$view->config->show_offset_information = false;
|
||||
$view->config->show_pagination_control = false;
|
||||
}
|
||||
|
||||
private function addBaseDisplayProperties(ViewDataTable $view)
|
||||
{
|
||||
$view->requestConfig->filter_sort_column = 'label';
|
||||
$view->requestConfig->filter_sort_order = 'desc';
|
||||
$view->requestConfig->filter_limit = 25;
|
||||
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->show_table_all_columns = false;
|
||||
$view->config->show_tag_cloud = false;
|
||||
$view->config->show_search = false;
|
||||
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$view->config->keep_summary_row = true;
|
||||
$view->config->disable_row_evolution = true;
|
||||
$view->config->highlight_summary_row = true;
|
||||
}
|
||||
|
||||
$view->config->addTranslations(array(
|
||||
'label' => Piwik::translate('DBStats_Table'),
|
||||
'year' => Piwik::translate('CoreHome_PeriodYear'),
|
||||
'data_size' => Piwik::translate('DBStats_DataSize'),
|
||||
'index_size' => Piwik::translate('DBStats_IndexSize'),
|
||||
'total_size' => Piwik::translate('DBStats_TotalSize'),
|
||||
'row_count' => Piwik::translate('DBStats_RowCount'),
|
||||
'percent_total' => '% ' . Piwik::translate('DBStats_DBSize'),
|
||||
'estimated_size' => Piwik::translate('DBStats_EstimatedSize')
|
||||
));
|
||||
}
|
||||
|
||||
private function addPresentationFilters(ViewDataTable $view, $addTotalSizeColumn = true, $addPercentColumn = false,
|
||||
$sizeColumns = array('data_size', 'index_size'))
|
||||
{
|
||||
// add total_size column
|
||||
if ($addTotalSizeColumn) {
|
||||
$getTotalTableSize = function ($dataSize, $indexSize) {
|
||||
return $dataSize + $indexSize;
|
||||
};
|
||||
|
||||
$view->config->filters[] = array('ColumnCallbackAddColumn',
|
||||
array(array('data_size', 'index_size'), 'total_size', $getTotalTableSize), $isPriority = true);
|
||||
|
||||
$sizeColumns[] = 'total_size';
|
||||
}
|
||||
|
||||
$runPrettySizeFilterBeforeGeneric = false;
|
||||
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
|
||||
// add summary row only if displaying a table
|
||||
$view->config->filters[] = array('AddSummaryRow', Piwik::translate('General_Total'));
|
||||
|
||||
// add percentage column if desired
|
||||
if ($addPercentColumn
|
||||
&& $addTotalSizeColumn
|
||||
) {
|
||||
$view->config->filters[] = array('ColumnCallbackAddColumnPercentage',
|
||||
array('percent_total', 'total_size', 'total_size', $quotientPrecision = 0,
|
||||
$shouldSkipRows = false, $getDivisorFromSummaryRow = true),
|
||||
$isPriority = true
|
||||
);
|
||||
|
||||
$view->requestConfig->filter_sort_column = 'percent_total';
|
||||
}
|
||||
|
||||
} else if ($view->isViewDataTableId(Graph::ID)) {
|
||||
if ($addTotalSizeColumn) {
|
||||
$view->config->columns_to_display = array('label', 'total_size');
|
||||
|
||||
// when displaying a graph, we force sizes to be shown as the same unit so axis labels
|
||||
// will be readable. NOTE: The unit should depend on the smallest value of the data table,
|
||||
// however there's no way to know this information, short of creating a custom filter. For
|
||||
// now, just assume KB.
|
||||
$fixedMemoryUnit = 'K';
|
||||
$view->config->y_axis_unit = ' K';
|
||||
$view->requestConfig->filter_sort_column = 'total_size';
|
||||
$view->requestConfig->filter_sort_order = 'desc';
|
||||
|
||||
$runPrettySizeFilterBeforeGeneric = true;
|
||||
} else {
|
||||
$view->config->columns_to_display = array('label', 'row_count');
|
||||
$view->config->y_axis_unit = ' ' . Piwik::translate('General_Rows');
|
||||
|
||||
$view->requestConfig->filter_sort_column = 'row_count';
|
||||
$view->requestConfig->filter_sort_order = 'desc';
|
||||
}
|
||||
}
|
||||
|
||||
$getPrettySize = array('\Piwik\MetricsFormatter', 'getPrettySizeFromBytes');
|
||||
$params = !isset($fixedMemoryUnit) ? array() : array($fixedMemoryUnit);
|
||||
|
||||
$view->config->filters[] = array('ColumnCallbackReplace', array($sizeColumns, $getPrettySize, $params), $runPrettySizeFilterBeforeGeneric);
|
||||
|
||||
// jqPlot will display as, well, ' ', so don't replace the spaces when rendering as a graph
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$replaceSpaces = function ($value) {
|
||||
return str_replace(' ', ' ', $value);
|
||||
};
|
||||
|
||||
$view->config->filters[] = array('ColumnCallbackReplace', array($sizeColumns, $replaceSpaces));
|
||||
}
|
||||
|
||||
$getPrettyNumber = array('\Piwik\MetricsFormatter', 'getPrettyNumber');
|
||||
$view->config->filters[] = array('ColumnCallbackReplace', array('row_count', $getPrettyNumber));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the footer message for the Individual...Summary reports.
|
||||
*/
|
||||
private function setIndividualSummaryFooterMessage(ViewDataTable $view)
|
||||
{
|
||||
$lastGenerated = self::getDateOfLastCachingRun();
|
||||
if ($lastGenerated !== false) {
|
||||
$view->config->show_footer_message = Piwik::translate('Mobile_LastUpdated', $lastGenerated);
|
||||
}
|
||||
}
|
||||
|
||||
public function setupTestEnvironment($environment)
|
||||
{
|
||||
Piwik::addAction("MySQLMetadataProvider.createDao", function (&$dao) {
|
||||
require_once dirname(__FILE__) . "/tests/Mocks/MockDataAccess.php";
|
||||
$dao = new Mocks\MockDataAccess();
|
||||
});
|
||||
}
|
||||
}
|
||||
70
www/analytics/plugins/DBStats/MySQLMetadataDataAccess.php
Normal file
70
www/analytics/plugins/DBStats/MySQLMetadataDataAccess.php
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\DBStats;
|
||||
|
||||
use Piwik\Db;
|
||||
use Piwik\Config;
|
||||
use \Exception;
|
||||
|
||||
/**
|
||||
* Data Access Object that serves MySQL stats.
|
||||
*/
|
||||
class MySQLMetadataDataAccess
|
||||
{
|
||||
public function getDBStatus()
|
||||
{
|
||||
if (function_exists('mysql_connect')) {
|
||||
$configDb = Config::getInstance()->database;
|
||||
$link = mysql_connect($configDb['host'], $configDb['username'], $configDb['password']);
|
||||
$status = mysql_stat($link);
|
||||
mysql_close($link);
|
||||
$status = explode(" ", $status);
|
||||
} else {
|
||||
$fullStatus = Db::fetchAssoc('SHOW STATUS');
|
||||
if (empty($fullStatus)) {
|
||||
throw new Exception('Error, SHOW STATUS failed');
|
||||
}
|
||||
|
||||
$status = array(
|
||||
'Uptime' => $fullStatus['Uptime']['Value'],
|
||||
'Threads' => $fullStatus['Threads_running']['Value'],
|
||||
'Questions' => $fullStatus['Questions']['Value'],
|
||||
'Slow queries' => $fullStatus['Slow_queries']['Value'],
|
||||
'Flush tables' => $fullStatus['Flush_commands']['Value'],
|
||||
'Open tables' => $fullStatus['Open_tables']['Value'],
|
||||
'Opens' => 'unavailable', // not available via SHOW STATUS
|
||||
'Queries per second avg' => 'unavailable' // not available via SHOW STATUS
|
||||
);
|
||||
}
|
||||
|
||||
return $status;
|
||||
}
|
||||
|
||||
public function getTableStatus($tableName)
|
||||
{
|
||||
return Db::fetchRow("SHOW TABLE STATUS LIKE ?", array($tableName));
|
||||
}
|
||||
|
||||
public function getAllTablesStatus()
|
||||
{
|
||||
return Db::fetchAll("SHOW TABLE STATUS");
|
||||
}
|
||||
|
||||
public function getRowCountsByArchiveName($tableName, $extraCols)
|
||||
{
|
||||
// otherwise, create data table & cache it
|
||||
$sql = "SELECT name as 'label', COUNT(*) as 'row_count'$extraCols FROM $tableName GROUP BY name";
|
||||
return Db::fetchAll($sql);
|
||||
}
|
||||
|
||||
public function getColumnsFromTable($tableName)
|
||||
{
|
||||
return Db::fetchAll("SHOW COLUMNS FROM " . $tableName);
|
||||
}
|
||||
}
|
||||
356
www/analytics/plugins/DBStats/MySQLMetadataProvider.php
Executable file
356
www/analytics/plugins/DBStats/MySQLMetadataProvider.php
Executable file
|
|
@ -0,0 +1,356 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\DBStats;
|
||||
|
||||
use Exception;
|
||||
use Piwik\Common;
|
||||
use Piwik\Config;
|
||||
use Piwik\DataTable;
|
||||
use Piwik\Db;
|
||||
use Piwik\DbHelper;
|
||||
use Piwik\Option;
|
||||
use Piwik\Piwik;
|
||||
|
||||
/**
|
||||
* Utility class that provides general information about databases, including the size of
|
||||
* the entire database, the size and row count of each table and the size and row count
|
||||
* of each metric/report type currently stored.
|
||||
*
|
||||
* This class will cache the table information it retrieves from the database. In order to
|
||||
* issue a new query instead of using this cache, you must create a new instance of this type.
|
||||
*/
|
||||
class MySQLMetadataProvider
|
||||
{
|
||||
/**
|
||||
* Cached MySQL table statuses. So we won't needlessly re-issue SHOW TABLE STATUS queries.
|
||||
*/
|
||||
private $tableStatuses = null;
|
||||
|
||||
/**
|
||||
* Data access object.
|
||||
*/
|
||||
public $dataAccess = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
Piwik::postTestEvent("MySQLMetadataProvider.createDao", array(&$this->dataAccess));
|
||||
|
||||
if ($this->dataAccess === null) {
|
||||
$this->dataAccess = new MySQLMetadataDataAccess();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets general database info that is not specific to any table.
|
||||
*
|
||||
* @throws Exception
|
||||
* @return array See http://dev.mysql.com/doc/refman/5.1/en/show-status.html .
|
||||
*/
|
||||
public function getDBStatus()
|
||||
{
|
||||
return $this->dataAccess->getDBStatus();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the MySQL table status of the requested Piwik table.
|
||||
*
|
||||
* @param string $table The name of the table. Should not be prefixed (ie, 'log_visit' is
|
||||
* correct, 'piwik_log_visit' is not).
|
||||
* @return array See http://dev.mysql.com/doc/refman/5.1/en/show-table-status.html .
|
||||
*/
|
||||
public function getTableStatus($table)
|
||||
{
|
||||
$prefixed = Common::prefixTable($table);
|
||||
|
||||
// if we've already gotten every table status, don't issue an uneeded query
|
||||
if (!is_null($this->tableStatuses) && isset($this->tableStatuses[$prefixed])) {
|
||||
return $this->tableStatuses[$prefixed];
|
||||
} else {
|
||||
return $this->dataAccess->getTableStatus($prefixed);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the result of a SHOW TABLE STATUS query for every Piwik table in the DB.
|
||||
* Non-piwik tables are ignored.
|
||||
*
|
||||
* @param string $matchingRegex Regex used to filter out tables whose name doesn't
|
||||
* match it.
|
||||
* @return array The table information. See http://dev.mysql.com/doc/refman/5.5/en/show-table-status.html
|
||||
* for specifics.
|
||||
*/
|
||||
public function getAllTablesStatus($matchingRegex = null)
|
||||
{
|
||||
if (is_null($this->tableStatuses)) {
|
||||
$tablesPiwik = DbHelper::getTablesInstalled();
|
||||
|
||||
$this->tableStatuses = array();
|
||||
foreach ($this->dataAccess->getAllTablesStatus() as $t) {
|
||||
if (in_array($t['Name'], $tablesPiwik)) {
|
||||
$this->tableStatuses[$t['Name']] = $t;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (is_null($matchingRegex)) {
|
||||
return $this->tableStatuses;
|
||||
}
|
||||
|
||||
$result = array();
|
||||
foreach ($this->tableStatuses as $status) {
|
||||
if (preg_match($matchingRegex, $status['Name'])) {
|
||||
$result[] = $status;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns table statuses for every log table.
|
||||
*
|
||||
* @return array An array of status arrays. See http://dev.mysql.com/doc/refman/5.5/en/show-table-status.html.
|
||||
*/
|
||||
public function getAllLogTableStatus()
|
||||
{
|
||||
$regex = "/^" . Common::prefixTable('log_') . "(?!profiling)/";
|
||||
return $this->getAllTablesStatus($regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns table statuses for every numeric archive table.
|
||||
*
|
||||
* @return array An array of status arrays. See http://dev.mysql.com/doc/refman/5.5/en/show-table-status.html.
|
||||
*/
|
||||
public function getAllNumericArchiveStatus()
|
||||
{
|
||||
$regex = "/^" . Common::prefixTable('archive_numeric') . "_/";
|
||||
return $this->getAllTablesStatus($regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns table statuses for every blob archive table.
|
||||
*
|
||||
* @return array An array of status arrays. See http://dev.mysql.com/doc/refman/5.5/en/show-table-status.html.
|
||||
*/
|
||||
public function getAllBlobArchiveStatus()
|
||||
{
|
||||
$regex = "/^" . Common::prefixTable('archive_blob') . "_/";
|
||||
return $this->getAllTablesStatus($regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retruns table statuses for every admin table.
|
||||
*
|
||||
* @return array An array of status arrays. See http://dev.mysql.com/doc/refman/5.5/en/show-table-status.html.
|
||||
*/
|
||||
public function getAllAdminTableStatus()
|
||||
{
|
||||
$regex = "/^" . Common::prefixTable('') . "(?!archive_|(?:log_(?!profiling)))/";
|
||||
return $this->getAllTablesStatus($regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a DataTable that lists the number of rows and the estimated amount of space
|
||||
* each blob archive type takes up in the database.
|
||||
*
|
||||
* Blob types are differentiated by name.
|
||||
*
|
||||
* @param bool $forceCache false to use the cached result, true to run the queries again and
|
||||
* cache the result.
|
||||
* @return DataTable
|
||||
*/
|
||||
public function getRowCountsAndSizeByBlobName($forceCache = false)
|
||||
{
|
||||
$extraSelects = array("SUM(OCTET_LENGTH(value)) AS 'blob_size'", "SUM(LENGTH(name)) AS 'name_size'");
|
||||
$extraCols = array('blob_size', 'name_size');
|
||||
return $this->getRowCountsByArchiveName(
|
||||
$this->getAllBlobArchiveStatus(), 'getEstimatedBlobArchiveRowSize', $forceCache, $extraSelects,
|
||||
$extraCols);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a DataTable that lists the number of rows and the estimated amount of space
|
||||
* each metric archive type takes up in the database.
|
||||
*
|
||||
* Metric types are differentiated by name.
|
||||
*
|
||||
* @param bool $forceCache false to use the cached result, true to run the queries again and
|
||||
* cache the result.
|
||||
* @return DataTable
|
||||
*/
|
||||
public function getRowCountsAndSizeByMetricName($forceCache = false)
|
||||
{
|
||||
return $this->getRowCountsByArchiveName(
|
||||
$this->getAllNumericArchiveStatus(), 'getEstimatedRowsSize', $forceCache);
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility function. Gets row count of a set of tables grouped by the 'name' column.
|
||||
* This is the implementation of the getRowCountsAndSizeBy... functions.
|
||||
*/
|
||||
private function getRowCountsByArchiveName($statuses, $getRowSizeMethod, $forceCache = false,
|
||||
$otherSelects = array(), $otherDataTableColumns = array())
|
||||
{
|
||||
$extraCols = '';
|
||||
if (!empty($otherSelects)) {
|
||||
$extraCols = ', ' . implode(', ', $otherSelects);
|
||||
}
|
||||
|
||||
$cols = array_merge(array('row_count'), $otherDataTableColumns);
|
||||
|
||||
$dataTable = new DataTable();
|
||||
foreach ($statuses as $status) {
|
||||
$dataTableOptionName = $this->getCachedOptionName($status['Name'], 'byArchiveName');
|
||||
|
||||
// if option exists && !$forceCache, use the cached data, otherwise create the
|
||||
$cachedData = Option::get($dataTableOptionName);
|
||||
if ($cachedData !== false && !$forceCache) {
|
||||
$table = DataTable::fromSerializedArray($cachedData);
|
||||
} else {
|
||||
$table = new DataTable();
|
||||
$table->addRowsFromSimpleArray($this->dataAccess->getRowCountsByArchiveName($status['Name'], $extraCols));
|
||||
|
||||
$reduceArchiveRowName = array($this, 'reduceArchiveRowName');
|
||||
$table->filter('GroupBy', array('label', $reduceArchiveRowName));
|
||||
|
||||
$serializedTables = $table->getSerialized();
|
||||
$serializedTable = reset($serializedTables);
|
||||
Option::set($dataTableOptionName, $serializedTable);
|
||||
}
|
||||
|
||||
// add estimated_size column
|
||||
$getEstimatedSize = array($this, $getRowSizeMethod);
|
||||
$table->filter('ColumnCallbackAddColumn',
|
||||
array($cols, 'estimated_size', $getEstimatedSize, array($status)));
|
||||
|
||||
$dataTable->addDataTable($table);
|
||||
}
|
||||
return $dataTable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the estimated database size a count of rows takes in a table.
|
||||
*/
|
||||
public function getEstimatedRowsSize($row_count, $status)
|
||||
{
|
||||
if ($status['Rows'] == 0) {
|
||||
return 0;
|
||||
}
|
||||
$avgRowSize = ($status['Data_length'] + $status['Index_length']) / $status['Rows'];
|
||||
return $avgRowSize * $row_count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the estimated database size a count of rows in a blob_archive table. Depends on
|
||||
* the data table row to contain the size of all blobs & name strings in the row set it
|
||||
* represents.
|
||||
*/
|
||||
public function getEstimatedBlobArchiveRowSize($row_count, $blob_size, $name_size, $status)
|
||||
{
|
||||
// calculate the size of each fixed size column in a blob archive table
|
||||
static $fixedSizeColumnLength = null;
|
||||
if (is_null($fixedSizeColumnLength)) {
|
||||
$fixedSizeColumnLength = 0;
|
||||
foreach ($this->dataAccess->getColumnsFromTable($status['Name']) as $column) {
|
||||
$columnType = $column['Type'];
|
||||
|
||||
if (($paren = strpos($columnType, '(')) !== false) {
|
||||
$columnType = substr($columnType, 0, $paren);
|
||||
}
|
||||
|
||||
$fixedSizeColumnLength += $this->getSizeOfDatabaseType($columnType);
|
||||
}
|
||||
}
|
||||
// calculate the average row size
|
||||
if ($status['Rows'] == 0) {
|
||||
$avgRowSize = 0;
|
||||
} else {
|
||||
$avgRowSize = $status['Index_length'] / $status['Rows'] + $fixedSizeColumnLength;
|
||||
}
|
||||
|
||||
// calculate the row set's size
|
||||
return $avgRowSize * $row_count + $blob_size + $name_size;
|
||||
}
|
||||
|
||||
/** Returns the size in bytes of a fixed size MySQL data type. Returns 0 for unsupported data type. */
|
||||
private function getSizeOfDatabaseType($columnType)
|
||||
{
|
||||
switch (strtolower($columnType)) {
|
||||
case "tinyint":
|
||||
case "year":
|
||||
return 1;
|
||||
case "smallint":
|
||||
return 2;
|
||||
case "mediumint":
|
||||
case "date":
|
||||
case "time":
|
||||
return 3;
|
||||
case "int":
|
||||
case "float": // assumes precision isn't used
|
||||
case "timestamp":
|
||||
return 4;
|
||||
case "bigint":
|
||||
case "double":
|
||||
case "real":
|
||||
case "datetime":
|
||||
return 8;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the option name used to cache the result of an intensive query.
|
||||
*/
|
||||
private function getCachedOptionName($tableName, $suffix)
|
||||
{
|
||||
return 'dbstats_cached_' . $tableName . '_' . $suffix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reduces the given metric name. Used to simplify certain reports.
|
||||
*
|
||||
* Some metrics, like goal metrics, can have different string names. For goal metrics,
|
||||
* there's one name per goal ID. Grouping metrics and reports like these together
|
||||
* simplifies the tables that display them.
|
||||
*
|
||||
* This function makes goal names, 'done...' names and names of the format .*_[0-9]+
|
||||
* equivalent.
|
||||
*/
|
||||
public function reduceArchiveRowName($name)
|
||||
{
|
||||
// all 'done...' fields are considered the same
|
||||
if (strpos($name, 'done') === 0) {
|
||||
return 'done';
|
||||
}
|
||||
|
||||
// check for goal id, if present (Goals_... reports should not be reduced here, just Goal_... ones)
|
||||
if (preg_match("/^Goal_(?:-?[0-9]+_)?(.*)/", $name, $matches)) {
|
||||
$name = "Goal_*_" . $matches[1];
|
||||
}
|
||||
|
||||
// remove subtable id suffix, if present
|
||||
if (preg_match("/^(.*)_[0-9]+$/", $name, $matches)) {
|
||||
$name = $matches[1] . "_*";
|
||||
}
|
||||
|
||||
return $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the internal cache that stores TABLE STATUS results.
|
||||
*/
|
||||
public function clearStatusCache()
|
||||
{
|
||||
$this->tableStatuses = null;
|
||||
}
|
||||
}
|
||||
10
www/analytics/plugins/DBStats/lang/am.json
Normal file
10
www/analytics/plugins/DBStats/lang/am.json
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "የውሂብ ጎታ አጠቃቀም",
|
||||
"DataSize": "የውሂብ መጠን",
|
||||
"IndexSize": "የመረጃ ጠቋሚ መጠን",
|
||||
"MainDescription": "ፒዊክ የድር ምዘናዎቹን ውሂብ በመይ ኤስ ኪው ኤል ይውሂብ ጎታ ውስጥ በማከማቸት ላይ ነው። በአሁን ወቅት የፒዊክ ሰንጠረዦች እየተጠቀሙ ያሉት %s።",
|
||||
"Table": "ሰንጠረዥ",
|
||||
"TotalSize": "አጠቃላይ መጠን"
|
||||
}
|
||||
}
|
||||
17
www/analytics/plugins/DBStats/lang/ar.json
Normal file
17
www/analytics/plugins/DBStats/lang/ar.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "استهلاك قاعدة البيانات",
|
||||
"DataSize": "حجم البيانات",
|
||||
"EstimatedSize": "الحجم التقريبي",
|
||||
"IndexSize": "حجم السجل",
|
||||
"LearnMore": "للإطلاع على المزيد حول كيفية معالجة Piwik للبيانات وكيفية ضبطه ليعمل على المواقع المتوسطة والكبيرة، انظر مستندات الدعم %s.",
|
||||
"MainDescription": "يقوم Piwik بتخزين كافة بيانات تحليلات ويب في قاعدة بيانات MySQL. حالياً، استهلك Piwik %s.",
|
||||
"MetricTables": "جداول المعيار",
|
||||
"PluginDescription": "هذا التطبيق يعطيك تقريراً عن مدى استهلاك قاعدة البيانات بواسطة جداول Piwik.",
|
||||
"ReportDataByYear": "جداول التقرير بالسنة",
|
||||
"RowCount": "عدد السطور",
|
||||
"Table": "الجدول",
|
||||
"TotalSize": "الحجم الإجمالي",
|
||||
"TrackerTables": "جداول المتتبع"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/be.json
Normal file
13
www/analytics/plugins/DBStats/lang/be.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Выкарыстанне БД",
|
||||
"DataSize": "Памер дадзеных",
|
||||
"IndexSize": "Памер індэксу",
|
||||
"LearnMore": "Каб даведацца больш аб тым, як Piwik апрацоўвае дадзеныя і як налдзцца больш аб тым, як Piwik апрацоўвае дадзеныя і як налдзиціць Piwik для добрага працавання на сайтах з сярэднімі і высокім трафікам, праверце дакументацыю %s.",
|
||||
"MainDescription": "Piwik захоўвае ўсю Вашу web статыстыку ў базе MySQL. Выкарыстанне Piwik табліц на дадзены момант %s.",
|
||||
"PluginDescription": "Гэты плагін паведамляе аб выкарыстанні базы дадзеных таблицам Piwik",
|
||||
"RowCount": "Колькасць радкоў",
|
||||
"Table": "Табліца",
|
||||
"TotalSize": "Агульны памер"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/bg.json
Normal file
21
www/analytics/plugins/DBStats/lang/bg.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Натоварване на БД",
|
||||
"DataSize": "Данни (размер)",
|
||||
"DBSize": "Размер на БД",
|
||||
"EstimatedSize": "Ориентировъчен размер",
|
||||
"IndexSize": "Индекс (размер)",
|
||||
"LearnMore": "За да научите повече за това как Piwik обработва данни и колко добре работи за среден и висок трафик на уеб сайтове, проверете документацията %s.",
|
||||
"MainDescription": "Piwik съхранява цялата информация в MySQL база от данни (БД). В момента Piwik таблиците използват %s.",
|
||||
"MetricDataByYear": "Метрични таблици за година",
|
||||
"MetricTables": "Метрични таблици",
|
||||
"OtherTables": "Други таблици",
|
||||
"PluginDescription": "Тази добавка докладва за използваното пространство на таблиците от Piwik в MySQL.",
|
||||
"ReportDataByYear": "Годишен доклад на таблици",
|
||||
"ReportTables": "Докладни таблици",
|
||||
"RowCount": "Брой редове",
|
||||
"Table": "Таблици",
|
||||
"TotalSize": "Общ размер",
|
||||
"TrackerTables": "Таблици на тракера"
|
||||
}
|
||||
}
|
||||
5
www/analytics/plugins/DBStats/lang/bn.json
Normal file
5
www/analytics/plugins/DBStats/lang/bn.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"Table": "সারণি"
|
||||
}
|
||||
}
|
||||
8
www/analytics/plugins/DBStats/lang/bs.json
Normal file
8
www/analytics/plugins/DBStats/lang/bs.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DataSize": "Veličina podataka",
|
||||
"DBSize": "Veličina baze podataka",
|
||||
"Table": "Tabla",
|
||||
"TotalSize": "Ukupna velična"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/ca.json
Normal file
21
www/analytics/plugins/DBStats/lang/ca.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Ús de la base de dades",
|
||||
"DataSize": "Grandària de les dades",
|
||||
"DBSize": "Mida de la BD",
|
||||
"EstimatedSize": "Mida estimada",
|
||||
"IndexSize": "Grandària del l'índex",
|
||||
"LearnMore": "Per obtenir més informació sobre com el Piwik procesa la informació i com fer que el Piwik funcioni correctament en llocs amb un tràfic mitja o elevat, consulteu la següent documentació: %s.",
|
||||
"MainDescription": "El Piwik desa totes les anàlisis web la base de dades MySQL. Ara per ara, les taules del Piwik fan servir %s.",
|
||||
"MetricDataByYear": "Taules de mètriques per any.",
|
||||
"MetricTables": "Taules de mètriques",
|
||||
"OtherTables": "Altres taules",
|
||||
"PluginDescription": "Aquesta extensió mostra l'us de la Base de dades MySQL per les taules del Piwik.",
|
||||
"ReportDataByYear": "Taules d'informes per any",
|
||||
"ReportTables": "Taules d'informes",
|
||||
"RowCount": "Nombre de files",
|
||||
"Table": "Taula",
|
||||
"TotalSize": "Grandària total",
|
||||
"TrackerTables": "Taules de rastreig"
|
||||
}
|
||||
}
|
||||
20
www/analytics/plugins/DBStats/lang/cs.json
Normal file
20
www/analytics/plugins/DBStats/lang/cs.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Využití databáze",
|
||||
"DataSize": "Velikost dat",
|
||||
"DBSize": "Velikost databáze",
|
||||
"EstimatedSize": "Odhadovaná velikost",
|
||||
"IndexSize": "Velikost indexu",
|
||||
"LearnMore": "Abyste lépe zjistili, jak Piwik zpracovává data a jak jej nastavit pro weby se středním a velkým provozem, podívejte se do dokumentace %s.",
|
||||
"MainDescription": "Piwik ukládá všechny vaše data webové analýzy v MySQL databázi. Nyní tabulky Piwiku využívají %s.",
|
||||
"MetricDataByYear": "Měření tabulek za rok",
|
||||
"MetricTables": "Měřené tabulky",
|
||||
"OtherTables": "Osttaní tabulky",
|
||||
"PluginDescription": "Tento zásuvný modul hlásí využití databáze MySQL tabulkami Piwiku",
|
||||
"ReportDataByYear": "Hlášení tabulek za rok",
|
||||
"ReportTables": "Hlášení tabulek",
|
||||
"RowCount": "Počet řádků",
|
||||
"Table": "Tabulka",
|
||||
"TotalSize": "Celková velikost"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/da.json
Normal file
21
www/analytics/plugins/DBStats/lang/da.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Database brug",
|
||||
"DataSize": "Data",
|
||||
"DBSize": "DB størrelse",
|
||||
"EstimatedSize": "Anslået størrelse",
|
||||
"IndexSize": "Indeks",
|
||||
"LearnMore": "Hvis du vil vide mere om, hvordan Piwik behandler data, og hvordan man kan få Piwik til arbejde godt på mellem til stærkt trafikerede hjemmesider, se dokumentationen på %s.",
|
||||
"MainDescription": "Piwik gemmer al statistik i MySQL-databasen. Lige nu bruger Piwik-tabellerne %s.",
|
||||
"MetricDataByYear": "Målingstabeller fordelt på år",
|
||||
"MetricTables": "Målingstabeller",
|
||||
"OtherTables": "Andre tabeller",
|
||||
"PluginDescription": "Programudvidelsen viser MySQL-database brugen af Piwik tabeller.",
|
||||
"ReportDataByYear": "Rapport tabeller fordelt på år",
|
||||
"ReportTables": "Rapport tabeller",
|
||||
"RowCount": "Række antal",
|
||||
"Table": "Tabel",
|
||||
"TotalSize": "Samlet størrelse",
|
||||
"TrackerTables": "Sporings tabeller"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/de.json
Normal file
21
www/analytics/plugins/DBStats/lang/de.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Datenbanknutzung",
|
||||
"DataSize": "Datenmenge",
|
||||
"DBSize": "Datenbankgröße",
|
||||
"EstimatedSize": "Erwartete Größe",
|
||||
"IndexSize": "Indexgröße",
|
||||
"LearnMore": "Um mehr darüber zu erfahren, wie Piwik Daten verarbeitet und wie Sie Piwik auf stark besuchten Webseiten einsetzen können, lesen Sie die Dokumentation unter %s.",
|
||||
"MainDescription": "Piwik speichert sämtliche Webanalyse-Daten in der MySQL-Datenbank. Aktuell belegter Speicherplatz %s.",
|
||||
"MetricDataByYear": "Metriktabellen pro Jahr",
|
||||
"MetricTables": "Metriktabellen",
|
||||
"OtherTables": "Andere Tabellen",
|
||||
"PluginDescription": "Dieses Plugin berichtet über die Nutzung und Auslastung der Piwik-Tabellen in der MySQL Datenbank.",
|
||||
"ReportDataByYear": "Berichtstabellen pro Jahr",
|
||||
"ReportTables": "Berichtstabellen",
|
||||
"RowCount": "Zeilenanzahl",
|
||||
"Table": "Tabelle",
|
||||
"TotalSize": "Gesamtgröße",
|
||||
"TrackerTables": "Trackertabellen"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/el.json
Normal file
21
www/analytics/plugins/DBStats/lang/el.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Χρήση βάσης δεδομένων",
|
||||
"DataSize": "Μέγεθος δεδομένων",
|
||||
"DBSize": "Μέγεθος Βάσης Δεδομένων",
|
||||
"EstimatedSize": "Εκτιμόμενο μέγεθος",
|
||||
"IndexSize": "Μέγεθος ευρετηρίου",
|
||||
"LearnMore": "Για να μάθετε περισσότερα για τη διαχείριση δεδομένων του Piwik και πως να κάνετε το Piwik να λειτουργεί καλά για ιστοσελίδες μέσης και υψηλής επισκεψιμότητας, δείτε την τεκμηρίωση %s.",
|
||||
"MainDescription": "Το Piwik αποθηκεύει όλα τα δεδομένα της ανάλυσης στη βάση δεδομένων της Mysql. Τώρα, οι πίνακες του Piwik χρησιμοποιούν %s.",
|
||||
"MetricDataByYear": "Πίνακες Μετρήσεων Κατά Έτος",
|
||||
"MetricTables": "Πίνακες Μετρήσεων",
|
||||
"OtherTables": "Άλλοι Πίνακες",
|
||||
"PluginDescription": "Αυτό το πρόσθετο δίνει αναφορά για τη χρήση της βάσης δεδομένων MySQL από τους πίνακες του Piwik.",
|
||||
"ReportDataByYear": "Πίνακες αναφοράς Κατά Έτος",
|
||||
"ReportTables": "Πίνακες Αναφοράς",
|
||||
"RowCount": "Αριθμός σειρών",
|
||||
"Table": "Πίνακας",
|
||||
"TotalSize": "Συνολικό μέγεθος",
|
||||
"TrackerTables": "Πίνακες Καταγραφής"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/en.json
Normal file
21
www/analytics/plugins/DBStats/lang/en.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"PluginDescription": "This plugin reports the MySQL database usage by Piwik tables.",
|
||||
"DatabaseUsage": "Database usage",
|
||||
"MainDescription": "Piwik stores all your web analytics data in a MySQL database. Currently, Piwik tables take up %s of space.",
|
||||
"LearnMore": "To learn more about how Piwik processes data and how to make Piwik work well with medium and high traffic websites, see this documentation: %s.",
|
||||
"Table": "Table",
|
||||
"RowCount": "Row count",
|
||||
"DataSize": "Data size",
|
||||
"IndexSize": "Index size",
|
||||
"TotalSize": "Total size",
|
||||
"DBSize": "DB size",
|
||||
"ReportDataByYear": "Report Tables By Year",
|
||||
"MetricDataByYear": "Metric Tables By Year",
|
||||
"EstimatedSize": "Estimated size",
|
||||
"TrackerTables": "Tracker Tables",
|
||||
"ReportTables": "Report Tables",
|
||||
"MetricTables": "Metric Tables",
|
||||
"OtherTables": "Other Tables"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/es.json
Normal file
21
www/analytics/plugins/DBStats/lang/es.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Uso de la base de datos",
|
||||
"DataSize": "Tamaño de los datos",
|
||||
"DBSize": "Tamaño BD",
|
||||
"EstimatedSize": "Tamaño estimado",
|
||||
"IndexSize": "Tamaño del índice",
|
||||
"LearnMore": "Para aprender más sobre cómo Piwik procesa los datos y cómo hacer que Piwik funcione bien para sitios web de mediano y grande trafico, eche un vistazo a la documentación %s.",
|
||||
"MainDescription": "Piwik está almacenando todos sus datos de análisis web en la base de datos MySQL. Actualmente, las tablas de Piwik están usando %s.",
|
||||
"MetricDataByYear": "Tablas de Medición Anuales",
|
||||
"MetricTables": "Tablas de Medición",
|
||||
"OtherTables": "Otras tablas",
|
||||
"PluginDescription": "Este plugin reporta el uso de la base de datos MySQL de las tablas de Piwik.",
|
||||
"ReportDataByYear": "Reporte de Tablas Anual",
|
||||
"ReportTables": "Tablas de reportes",
|
||||
"RowCount": "Cantidad de filas",
|
||||
"Table": "Tabla",
|
||||
"TotalSize": "Tamaño total",
|
||||
"TrackerTables": "Tablas de Rastreadores"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/et.json
Normal file
21
www/analytics/plugins/DBStats/lang/et.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Andmebaasi kasutus",
|
||||
"DataSize": "Andmemaht",
|
||||
"DBSize": "Andmebaasi suurus",
|
||||
"EstimatedSize": "Ennustatud maht",
|
||||
"IndexSize": "Indeksi maht",
|
||||
"LearnMore": "Et saada rohkem infot, kuidas Piwik töötleb andmeid ja kuidas optimeerida Piwikut tööks keskmise ja kõrge külastatavusega veebilehtedele, vaata seda dokumentatsiooni: %s.",
|
||||
"MainDescription": "Piwik salvestab kõik veebianalüütika andmed MySQL andmebaasi. Piwiku tabelid kasutavad hetkel %s.",
|
||||
"MetricDataByYear": "Mõõttabelid aasta järgi",
|
||||
"MetricTables": "Mõõttabelid",
|
||||
"OtherTables": "Muud tabelid",
|
||||
"PluginDescription": "Antud lisatarkvara raporteerib Piwiku tabelite MySQL andmebaasi kasutust.",
|
||||
"ReportDataByYear": "Raporti tabelid aasta järgi",
|
||||
"ReportTables": "Raporti tabelid",
|
||||
"RowCount": "Ridade arv",
|
||||
"Table": "Tabel",
|
||||
"TotalSize": "Kogusuurus",
|
||||
"TrackerTables": "Jälitustabelid"
|
||||
}
|
||||
}
|
||||
12
www/analytics/plugins/DBStats/lang/eu.json
Normal file
12
www/analytics/plugins/DBStats/lang/eu.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Datu-basearen erabilera",
|
||||
"DataSize": "Datuen tamaina",
|
||||
"IndexSize": "Indizearen tamaina",
|
||||
"LearnMore": "Piwik-ek datuak nola prozesatzen dituen eta Piwik trafiko ertain eta handikjo webguneetarako nola moldatu jakiteko, emaiozu begirada dokumentazioari: %s.",
|
||||
"MainDescription": "Zure web analitiken datu guztiak MySQL datu-basean biltegiratzen ari da Piwik. Une honetan Piwik-en taulek tamaina hau hartzen dute: %s.",
|
||||
"RowCount": "Errenkada kopurua",
|
||||
"Table": "Taula",
|
||||
"TotalSize": "Tamaina osoa"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/fa.json
Normal file
21
www/analytics/plugins/DBStats/lang/fa.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "پایگاه داده مورد استفاده",
|
||||
"DataSize": "اندازه داده ها",
|
||||
"DBSize": "اندازه پایگاه داده",
|
||||
"EstimatedSize": "اندازه تخمین زده شده",
|
||||
"IndexSize": "اندازه شاخص(ایندکس)",
|
||||
"LearnMore": "برای درک بیشتر درباره ی پردازش داده ها توسط پیویک و چگونگی تنظیم پیویک برای عملکرد عالی برای وبسایت های با ترافیک متوسط و بالا , این مستندات را ببینید: %s.",
|
||||
"MainDescription": "پیویک تمام داده های آماری وب شما را در یک پایگاه داده ی MySQL نگهداری می کند. هم اکنون جدول های پیویک %s از فضا را اشغال کرده اند.",
|
||||
"MetricDataByYear": "جدول های معیار سالیانه",
|
||||
"MetricTables": "جدول های معیار",
|
||||
"OtherTables": "سایر جدول ها",
|
||||
"PluginDescription": "این افزونه به گزارش استفاده از پایگاه داده MySQL را با استفاده از جداول Piwik.",
|
||||
"ReportDataByYear": "جدول گزارش بر اساس سال",
|
||||
"ReportTables": "گزارش جدول ها",
|
||||
"RowCount": "تعداد سطر",
|
||||
"Table": "جدول",
|
||||
"TotalSize": "سایز کل",
|
||||
"TrackerTables": "جدول های ردیاب"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/fi.json
Normal file
21
www/analytics/plugins/DBStats/lang/fi.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Tietokannan käyttö",
|
||||
"DataSize": "Tietojen koko",
|
||||
"DBSize": "Tietokannan koko",
|
||||
"EstimatedSize": "Arvioitu koko",
|
||||
"IndexSize": "Indeksien koko",
|
||||
"LearnMore": "Jos haluat tietää enemmän Piwin tietojen käsittelystä ja Piwikin optimoinnista isoille verkkosivuille, voit katsoa dokumentaation %s.",
|
||||
"MainDescription": "Piwik tallentaa kaikki tiedot MySQL-tietokantaan. Piwikin taulut käyttävät %s.",
|
||||
"MetricDataByYear": "Metriikat vuosittain",
|
||||
"MetricTables": "Metriikkataulut",
|
||||
"OtherTables": "Muut taulut",
|
||||
"PluginDescription": "Tämä lisäosa raportoi MySQL-tietokannan käyttöä.",
|
||||
"ReportDataByYear": "Raporttitaulut vuosittain",
|
||||
"ReportTables": "Raporttitaulut",
|
||||
"RowCount": "Rivien määrä",
|
||||
"Table": "Taulu",
|
||||
"TotalSize": "Koko yhteensä",
|
||||
"TrackerTables": "Seurantataulut"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/fr.json
Normal file
21
www/analytics/plugins/DBStats/lang/fr.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Utilisation de la base de données",
|
||||
"DataSize": "Taille des données",
|
||||
"DBSize": "Taille de la BDD",
|
||||
"EstimatedSize": "Taille estimée",
|
||||
"IndexSize": "Taille de l'index",
|
||||
"LearnMore": "Pour en apprendre plus à propos de la manière dont Piwik traite les données et sur comment faire fonctionner Piwik correctement pour les sites à moyen et fort trafic, consultez la documentation %s.",
|
||||
"MainDescription": "Piwik stocke toutes vos donnés de statistiques web dans la base de données MySQL. En ce moment les tables de Piwik utilisent %s.",
|
||||
"MetricDataByYear": "Tables de métriques par année",
|
||||
"MetricTables": "Tables de métriques",
|
||||
"OtherTables": "Autres tables",
|
||||
"PluginDescription": "Ce plugin effectue des rapports sur l'utilisation de la base de données MySQL par les tables de Piwik.",
|
||||
"ReportDataByYear": "Tables de rapports par année",
|
||||
"ReportTables": "Tables de rapport",
|
||||
"RowCount": "Nombre de lignes",
|
||||
"Table": "Table",
|
||||
"TotalSize": "Taille totale",
|
||||
"TrackerTables": "Tables de suivi"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/he.json
Normal file
13
www/analytics/plugins/DBStats/lang/he.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "צריכת מסד נתונים",
|
||||
"DataSize": "משקל מידע",
|
||||
"IndexSize": "משקל מפתח (index)",
|
||||
"LearnMore": "בכדי ללמוד עוד אודות כיצד Piwik מעבדת מידע וכיצד לשפר את ביצועיה של Piwik עבור אתרים בעלי תעבורה בינונית עד גבוהה, מומלץ להציץ במדריך %s.",
|
||||
"MainDescription": "Piwik מאכסנת את כל המידע אודות ניתוח פעילות הרשת במסד נתונים. כרגע, טבלאות Piwik צורכות %s.",
|
||||
"PluginDescription": "תוסף זה מדווח על צריכת מסד הנתונים על ידי הטבלאות של Piwik.",
|
||||
"RowCount": "מספר שורות",
|
||||
"Table": "טבלה",
|
||||
"TotalSize": "משקל כולל"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/hi.json
Normal file
21
www/analytics/plugins/DBStats/lang/hi.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "डेटाबेस के उपयोग",
|
||||
"DataSize": "डाटा आकार",
|
||||
"DBSize": "डीबी आकार",
|
||||
"EstimatedSize": "अनुमानित आकार",
|
||||
"IndexSize": "सूचकांक के आकार",
|
||||
"LearnMore": "Piwik प्रक्रियाओं डेटा और कैसे मध्यम और उच्च यातायात वेबसाइटों के साथ अच्छी तरह से Piwik काम करता है दस्तावेज़ देखें कैसे के इस बारे में अधिक जानने के लिए:%s",
|
||||
"MainDescription": "Piwik MYSQL डाटाबेस में सभी अपने वेब विश्लेषण डेटा स्टोर करता है. वर्तमान में, Piwik तालिकाओं %s की जगह ले।",
|
||||
"MetricDataByYear": "वर्ष द्वारा मीट्रिक तालिकाएँ",
|
||||
"MetricTables": "मीट्रिक तालिकाएँ",
|
||||
"OtherTables": "अन्य तालिकाएँ",
|
||||
"PluginDescription": "यह प्लगइन Piwik तालिकाएँ से डाटाबेस के उपयोग की रिपोर्ट है",
|
||||
"ReportDataByYear": "वर्ष के द्वारा रिपोर्ट तालिकाएँ",
|
||||
"ReportTables": "रिपोर्ट तालिकाएँ",
|
||||
"RowCount": "गिनती पंक्ति के",
|
||||
"Table": "तालिका",
|
||||
"TotalSize": "कुल आकार",
|
||||
"TrackerTables": "खोज तालिकाएँ"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/hu.json
Normal file
13
www/analytics/plugins/DBStats/lang/hu.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Adatbázis-használat",
|
||||
"DataSize": "Adatméret",
|
||||
"IndexSize": "Indexméret",
|
||||
"LearnMore": "Ha többet szeretnél megtudni arról, hogyan dolgozza fel a Piwik az adatokat, és hogyan lehet mindezt hatékonyan megoldani közepes és nagyobb forgalommal rendelkező weboldalak esetén is, olvasd el a vonatkozó dokumentációt: %s",
|
||||
"MainDescription": "A Piwik egy MySQL adatbázisban tárolja a webanalitikai adatokat. Jelenleg a Piwik táblák a következőket használják: %s.",
|
||||
"PluginDescription": "A kiegészítő statisztikákat jelenít meg a Piwik adatbázis-használatáról.",
|
||||
"RowCount": "Sorok száma",
|
||||
"Table": "Tábla",
|
||||
"TotalSize": "Teljes méret"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/id.json
Normal file
21
www/analytics/plugins/DBStats/lang/id.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Penggunaan Basisdata",
|
||||
"DataSize": "Ukuran Data",
|
||||
"DBSize": "Ukuran Basisdat",
|
||||
"EstimatedSize": "Perkiraan ukuran",
|
||||
"IndexSize": "Ukuran Index",
|
||||
"LearnMore": "Pelajari selengkapnya tentang bagaimana Piwik mengolah data dan bagaimana Piwik bekerja baik dalam kunjungan situs menengah dan tinggi, lihat dokumentasi %s.",
|
||||
"MainDescription": "Piwik menyimpan seluruh data analisis ramatraya Anda di basisdata MySQL. Sekarang, tabel Piwik menggunakan %s.",
|
||||
"MetricDataByYear": "Tabel Metrik berdasarkan Tahun",
|
||||
"MetricTables": "Tabel Metrik",
|
||||
"OtherTables": "Tabel Lain",
|
||||
"PluginDescription": "Pengaya ini melaporkan pengunaan basisdata MySQL oleh tabel Piwik.",
|
||||
"ReportDataByYear": "Tabel Laporan berdasarkan Tahun",
|
||||
"ReportTables": "Tabel Laporan",
|
||||
"RowCount": "Jumlah Baris",
|
||||
"Table": "Tabel",
|
||||
"TotalSize": "Ukuran Total",
|
||||
"TrackerTables": "Tabel pelacak"
|
||||
}
|
||||
}
|
||||
12
www/analytics/plugins/DBStats/lang/is.json
Normal file
12
www/analytics/plugins/DBStats/lang/is.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Notkun gagnagrunns",
|
||||
"DataSize": "Gagnastærð",
|
||||
"IndexSize": "stærð vísitöflu",
|
||||
"MainDescription": "Piwik vistar öll vefgreiningagögn inn í MySQL gagnagrunn. Núna eru Piwik töflurnar að nota %s.",
|
||||
"PluginDescription": "Þessi íbót birtir MySQL gagnagrunnsnotkun á töflum Piwik.",
|
||||
"RowCount": "Fjöldi raða",
|
||||
"Table": "Tafla",
|
||||
"TotalSize": "Heildarstærð"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/it.json
Normal file
21
www/analytics/plugins/DBStats/lang/it.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Uso del Database",
|
||||
"DataSize": "Dimensione dei dati",
|
||||
"DBSize": "Grandezza database",
|
||||
"EstimatedSize": "Grandezza stimata",
|
||||
"IndexSize": "Dimensione degli indici",
|
||||
"LearnMore": "Per apprendere i dettagli su come Piwik elabora i dati, e su come far funzionare bene Piwik per siti a medio e alto traffico, dai un'occhiata alla documentazione %s.",
|
||||
"MainDescription": "Piwik sta salvando tutti i dati statistici nel Database MySQL. Attualmente, le tabelle di Piwik stanno usando %s.",
|
||||
"MetricDataByYear": "Tabelle metriche per anno",
|
||||
"MetricTables": "Tabelle metriche",
|
||||
"OtherTables": "Altre tabelle",
|
||||
"PluginDescription": "Questo plugin riporta l'uso di MySQL da parte delle tabelle di Piwik.",
|
||||
"ReportDataByYear": "Report tabelle per anno",
|
||||
"ReportTables": "Report tabelle",
|
||||
"RowCount": "Conteggio delle righe",
|
||||
"Table": "Tabella",
|
||||
"TotalSize": "Dimensione totale",
|
||||
"TrackerTables": "Tracker tabelle"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/ja.json
Normal file
21
www/analytics/plugins/DBStats/lang/ja.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "データベースの使用量",
|
||||
"DataSize": "データサイズ",
|
||||
"DBSize": "DB サイズ",
|
||||
"EstimatedSize": "推定サイズ",
|
||||
"IndexSize": "インデックスサイズ",
|
||||
"LearnMore": "Piwik のデータ処理方法やトラフィックの比較的高いウェブサイトで Piwik をうまく機能させる方法についての詳細は、ドキュメント %s を参照してください。",
|
||||
"MainDescription": "Piwik はすべてのウェブ解析データを Mysql データベースに保存します。 現在のところ、Piwik テーブルは %s を使用しています。",
|
||||
"MetricDataByYear": "年次のメトリック表",
|
||||
"MetricTables": "メトリック表",
|
||||
"OtherTables": "その他の表",
|
||||
"PluginDescription": "Piwik テーブルによる MySQL データベースの使用量をリポートします。",
|
||||
"ReportDataByYear": "年次のリポート表",
|
||||
"ReportTables": "リポート表",
|
||||
"RowCount": "行数",
|
||||
"Table": "テーブル",
|
||||
"TotalSize": "総サイズ",
|
||||
"TrackerTables": "トラッカー表"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/ka.json
Normal file
13
www/analytics/plugins/DBStats/lang/ka.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "მონაცემთა ბაზის გამოყენება",
|
||||
"DataSize": "მონაცემთა ზომა",
|
||||
"IndexSize": "ინდექსის ზომა",
|
||||
"LearnMore": "დამატებითი ინფორმაციის მისაღებად Piwik–ის მიერ მონაცემთა დამუშავების შესახებ და როგორ ამუშავოთ Piwik საშუალო და მაღალი ტრაფიკის ვებსაიტებზე უკეთესის შედეგის მისაღებად, გაეცანით დოკუმენტაციას %s.",
|
||||
"MainDescription": "Piwik ინახავს ვებ ანალიზის ყველა მონაცემს MySQL მონაცემთა ბაზაში. ამჟამად, Piwik ცხრილები იყენებენ %s.",
|
||||
"PluginDescription": "ეს პლაგინი აკეთებს ანგარიშს Piwik ცხრილების მიერ MySQL მონაცემთა ბაზის გამოყენებაზე.",
|
||||
"RowCount": "სტრიქონების რაოდენობა",
|
||||
"Table": "ცხრილი",
|
||||
"TotalSize": "მთლიანი ზომა"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/ko.json
Normal file
21
www/analytics/plugins/DBStats/lang/ko.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "데이터베이스 사용량",
|
||||
"DataSize": "데이터 용량",
|
||||
"DBSize": "DB 용량",
|
||||
"EstimatedSize": "예상 용량",
|
||||
"IndexSize": "인덱스 용량",
|
||||
"LearnMore": "트래픽이 비교적 높은 웹 사이트에서 Piwik 데이터를 처리 방법이나 Piwik을 작동시키는 방법에 대한 자세한 내용은 %s 문서를 참조하세요.",
|
||||
"MainDescription": "Piwik은 모든 웹 분석 데이터를 MySQL 데이터베이스에 저장하고 있습니다. 현재, Piwik 테이블은 %s 를 사용하고 있습니다.",
|
||||
"MetricDataByYear": "연별 통계 표",
|
||||
"MetricTables": "통계표",
|
||||
"OtherTables": "기타 표",
|
||||
"PluginDescription": "Piwik 테이블의 MySQL 데이터베이스 사용량을 보고합니다.",
|
||||
"ReportDataByYear": "연별 보고표",
|
||||
"ReportTables": "보고표",
|
||||
"RowCount": "행 수",
|
||||
"Table": "테이블",
|
||||
"TotalSize": "전체 용량",
|
||||
"TrackerTables": "추적기 표"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/lt.json
Normal file
13
www/analytics/plugins/DBStats/lang/lt.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Duombazės naudojimas",
|
||||
"DataSize": "Informacijos kiekis",
|
||||
"IndexSize": "Indekso dydis",
|
||||
"LearnMore": "Norint geriau susipažinti su Piwik duomenų apdorojimu bei kaip priversti Piwik veikti geriau vidutinės ir didelės apkrovos svetainėse, siūlome pastudijuoti dokumentaciją %s.",
|
||||
"MainDescription": "Piwik saugo visus Jūsų duomenis MySQL duombazėje. Šiuo metu Piwik lentelės naudoja %s.",
|
||||
"PluginDescription": "Šis papildinys informuoja apie MySQL duombazės užimtumą.",
|
||||
"RowCount": "Eilučių kiekis",
|
||||
"Table": "Lentelė",
|
||||
"TotalSize": "Bendras dydis"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/lv.json
Normal file
13
www/analytics/plugins/DBStats/lang/lv.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Datubāzes lietojums",
|
||||
"DataSize": "Datu izmērs",
|
||||
"IndexSize": "Indeksa izmērs",
|
||||
"LearnMore": "Lai uzzinātu vairāk par to, kā Piwik apstrādā datus un kā Piwik tiek galā ar vidēja un augsta apmeklējuma vietnēm, apskatiet dokumentāciju %s.",
|
||||
"MainDescription": "Piwik glabā visus Jūsu tīkla analīzes datus MySQL datubāzē. Pašlaik Piwik tabulas lieto %s.",
|
||||
"PluginDescription": "Šis spraudnis sniedz MySQL datubāzes Piwik tabulu lietojuma atskaites.",
|
||||
"RowCount": "Rindu skaits",
|
||||
"Table": "Tabula",
|
||||
"TotalSize": "Kopējais izmērs"
|
||||
}
|
||||
}
|
||||
16
www/analytics/plugins/DBStats/lang/nb.json
Normal file
16
www/analytics/plugins/DBStats/lang/nb.json
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Databasebruk",
|
||||
"DataSize": "Datastørrelse",
|
||||
"DBSize": "DB størrelse",
|
||||
"EstimatedSize": "Estimert størrelse",
|
||||
"IndexSize": "Indeksstørrelse",
|
||||
"LearnMore": "For å lære mer om hvordan Piwik behandler data og hvordan få Piwik til å virke bra for nettsteder med medium og høy trafikk, les dokumentasjonen %s.",
|
||||
"MainDescription": "Piwik lagrer all din statistikk i MySQL-databasen. Akkurat nå bruker Piwik-tabellene %s.",
|
||||
"OtherTables": "Andre tabeller",
|
||||
"PluginDescription": "Dette tillegget rapporterer MySQL-databasebruk for Piwik-tabeller.",
|
||||
"RowCount": "Antall rader",
|
||||
"Table": "Tabell",
|
||||
"TotalSize": "Total størrelse"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/nl.json
Normal file
21
www/analytics/plugins/DBStats/lang/nl.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Database gebruik",
|
||||
"DataSize": "Data omvang",
|
||||
"DBSize": "DB grootte",
|
||||
"EstimatedSize": "Geschatte grootte",
|
||||
"IndexSize": "Index grootte",
|
||||
"LearnMore": "Voor meer informatie over de manier waarop Piwik de data verwerkt en over de werking van Piwik in combinatie met middelgrote en grote website's, zie de documentatie %s.",
|
||||
"MainDescription": "Piwik slaat alle analysedata op in een MySQL database. Momenteel is de omvang van deze database %s.",
|
||||
"MetricDataByYear": "Metric tabellen per jaar",
|
||||
"MetricTables": "Metric tabellen",
|
||||
"OtherTables": "Andere tabellen",
|
||||
"PluginDescription": "Deze plugin toont het MySQL database verbruik door de Piwik tabellen.",
|
||||
"ReportDataByYear": "Rapport tabellen per jaar",
|
||||
"ReportTables": "Rapport tabellen",
|
||||
"RowCount": "Aantal rijen",
|
||||
"Table": "Tabel",
|
||||
"TotalSize": "Totale grootte",
|
||||
"TrackerTables": "Tracker tabellen"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/nn.json
Normal file
21
www/analytics/plugins/DBStats/lang/nn.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Databasebruk",
|
||||
"DataSize": "Datastorleik",
|
||||
"DBSize": "DB-storleik",
|
||||
"EstimatedSize": "Omlag storleik",
|
||||
"IndexSize": "Indeksstorleik",
|
||||
"LearnMore": "For å læra meir om korleis Piwik prosesserer data, og korleis gjera at Piwik fungerer bra for nettstader med middels og høg trafikk, sjå dokumentasjonen %s.",
|
||||
"MainDescription": "Piwik lagrar alle dine nettstatistikkdata i MySQL-databasen. Nett no nyttar tabellane til Piwik %s.",
|
||||
"MetricDataByYear": "Verdi-tabellar etter år",
|
||||
"MetricTables": "Verdi-tabellar",
|
||||
"OtherTables": "Andre tabellar",
|
||||
"PluginDescription": "Dette innstikket rapporterer bruken til Piwik av MySQL-databasen.",
|
||||
"ReportDataByYear": "Rapport-tabellar etter år",
|
||||
"ReportTables": "Rapport-tabellar",
|
||||
"RowCount": "Rad",
|
||||
"Table": "Tabell",
|
||||
"TotalSize": "Samla storleik",
|
||||
"TrackerTables": "Sporings-tabellar"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/pl.json
Normal file
13
www/analytics/plugins/DBStats/lang/pl.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Stopień wykorzystania bazy danych",
|
||||
"DataSize": "Rozmiar danych",
|
||||
"IndexSize": "Rozmiar indeksu",
|
||||
"LearnMore": "Aby dowiedzieć się więcej o tym, jak Piwik przetwarza dane i jak konfigurować go do pracy z serwisami o średnim i wysokim ruchu na stronach, sprawdź dokumentację %s.",
|
||||
"MainDescription": "Piwik przechowuje wszystkie dane analityki statystycznej stron w bazie danych MySQL serwera. Obecnie jego tabele zajmują %s.",
|
||||
"PluginDescription": "Ta wtyczka informuje o stopniu wykorzystania baz danych MySQL przez tabele Piwik.",
|
||||
"RowCount": "Liczba wierszy",
|
||||
"Table": "Tabela",
|
||||
"TotalSize": "Całkowity rozmiar"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/pt-br.json
Normal file
21
www/analytics/plugins/DBStats/lang/pt-br.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Uso do banco de dados",
|
||||
"DataSize": "Tamanho dos dados",
|
||||
"DBSize": "tamanho DB",
|
||||
"EstimatedSize": "Tamanho estimado",
|
||||
"IndexSize": "Tamanho do índice",
|
||||
"LearnMore": "Apara aprender mais sobre como o Piwik processa os dados e como fazer o Piwik trabalhar bem para sites de médio e alto tráfego, confira a documentação %s.",
|
||||
"MainDescription": "O Piwik está armazenando todos os dados de análise de tráfego no banco de dados MySQL. Atualmente, as tabelas do Piwik estão usando %s.",
|
||||
"MetricDataByYear": "Tabelas métricas Por Ano",
|
||||
"MetricTables": "Tabelas métricas",
|
||||
"OtherTables": "Outras tabelas",
|
||||
"PluginDescription": "Esse plugin relata o banco de dados MySQL usado pelas tabelas Piwik.",
|
||||
"ReportDataByYear": "Relatório Quadros por Ano",
|
||||
"ReportTables": "Tabelas de relatórios",
|
||||
"RowCount": "Contagem de linhas",
|
||||
"Table": "Tabela",
|
||||
"TotalSize": "Tamanho total",
|
||||
"TrackerTables": "Tabelas do Rastreador"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/pt.json
Normal file
13
www/analytics/plugins/DBStats/lang/pt.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Uso da base de dados",
|
||||
"DataSize": "Tamanho dos dados",
|
||||
"IndexSize": "Tamanho do índice",
|
||||
"LearnMore": "Para aprender mais sobre como o Piwik processa dados e como optimizar o Piwik para websites de tráfego médio ou elevado, veja a documentação %s.",
|
||||
"MainDescription": "Piwik está a armazenar todos os seus dados de analíticas da web na base de dados MySQL. Actualmente, tabelas Piwik estão a utilizar %s.",
|
||||
"PluginDescription": "Este plugin relata o uso da base de dados MySQL pelas tabelas Piwik.",
|
||||
"RowCount": "Número de linhas",
|
||||
"Table": "Tabela",
|
||||
"TotalSize": "Tamanho total"
|
||||
}
|
||||
}
|
||||
20
www/analytics/plugins/DBStats/lang/ro.json
Normal file
20
www/analytics/plugins/DBStats/lang/ro.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Utilizare baza date",
|
||||
"DataSize": "Marime date",
|
||||
"DBSize": "Mărimea bazei de date",
|
||||
"EstimatedSize": "Mărimea anticipată",
|
||||
"IndexSize": "Marime index",
|
||||
"LearnMore": "Pentru a invata mai multe despre cum proceseaza datele Piwik si cum sa faceti ca Piwik sa functioneze bine cu siteurile care au trafic mediu si mare, vedeti documentatia: %s.",
|
||||
"MainDescription": "Piwik stocheaza toate datele statistice in baza de date Mysql . Curent, tabela Piwik utilizeaza %s.",
|
||||
"MetricDataByYear": "Tabelele cu Parametri dupa An",
|
||||
"MetricTables": "Tabele Metrici",
|
||||
"OtherTables": "Alte tablete",
|
||||
"PluginDescription": "Acest plugin arata raportul cu gradul de utilizare a bazei de date MySQL pentru fiecare tabela Piwik in parte",
|
||||
"ReportDataByYear": "Tabele din raport pentru anul",
|
||||
"ReportTables": "Tabele din raport",
|
||||
"RowCount": "Numărul de înregistrări",
|
||||
"Table": "Tabel",
|
||||
"TotalSize": "Marime totala"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/ru.json
Normal file
21
www/analytics/plugins/DBStats/lang/ru.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Использование БД",
|
||||
"DataSize": "Размер данных",
|
||||
"DBSize": "Размер базы данных",
|
||||
"EstimatedSize": "Ожидаемый размер",
|
||||
"IndexSize": "Размер индекса",
|
||||
"LearnMore": "Чтобы узнать больше о том, как Веб-аналитика обрабатывает данные и как его оптимизировать для сайтов со средней и высокой нагрузкой, смотрите документацию %s.",
|
||||
"MainDescription": "Веб-аналитику хранит всю вашу статистику в базе данных MySQL. Размер таблиц на данный момент составляет %s.",
|
||||
"MetricDataByYear": "Таблицы показателей за год",
|
||||
"MetricTables": "Таблицы показателей",
|
||||
"OtherTables": "Другие таблицы",
|
||||
"PluginDescription": "Этот плагин показывает использование MySQL базы данных таблицами Piwik.",
|
||||
"ReportDataByYear": "Таблицы отчетов за год",
|
||||
"ReportTables": "Таблицы отчетов",
|
||||
"RowCount": "Количество записей",
|
||||
"Table": "Таблица",
|
||||
"TotalSize": "Общий размер",
|
||||
"TrackerTables": "Таблицы трекера"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/sk.json
Normal file
13
www/analytics/plugins/DBStats/lang/sk.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Využitie databázy",
|
||||
"DataSize": "Veľkosť dát",
|
||||
"DBSize": "Veľkosť databázy",
|
||||
"EstimatedSize": "Odhadovaná veľkosť",
|
||||
"IndexSize": "Veľkosť indexu",
|
||||
"MainDescription": "Piwik ukladá všetky vaše web analýzy do Mysql databázy. Aktuálne Piwik tabuľky používajú %s.",
|
||||
"RowCount": "Počet riadkov",
|
||||
"Table": "Tabuľka",
|
||||
"TotalSize": "Celková veľkosť"
|
||||
}
|
||||
}
|
||||
14
www/analytics/plugins/DBStats/lang/sl.json
Normal file
14
www/analytics/plugins/DBStats/lang/sl.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Uporaba podatkovne baze",
|
||||
"DataSize": "Velikost podatkov",
|
||||
"DBSize": "Velikost podatkovne baze",
|
||||
"EstimatedSize": "Ocenjena velikost",
|
||||
"IndexSize": "Velikost indeksa",
|
||||
"MainDescription": "Piwik shranjuje vse vaše podatke v MySQL bazo podatkov. Trenutna poraba podatkovne baze je %s.",
|
||||
"PluginDescription": "Ta vtičnik poroča o Piwik-ovi uporabi MySQL podatkovne baze.",
|
||||
"RowCount": "Število vrst",
|
||||
"Table": "Tabela",
|
||||
"TotalSize": "Skupna velikost"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/sq.json
Normal file
13
www/analytics/plugins/DBStats/lang/sq.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Përdorim baze të dhënash",
|
||||
"DataSize": "Madhësi të dhënash",
|
||||
"IndexSize": "Madhësi treguesi",
|
||||
"LearnMore": "Për të mësuar më tepër rreth se si i përpunon të dhënat Piwik-u dhe se si ta bëni Piwik-un të punojë mirë me site-e web me trafik mesatar ose të madh, kontrolloni dokumentimin %s.",
|
||||
"MainDescription": "Piwik-u po i depoziton krejt të dhënat tuaja për analizë web te baza e të dhënave MySQL. Tani për tani, tabelat e Piwik-ut po përdorin %s.",
|
||||
"PluginDescription": "Kjo shtojcë raporton përdorimin e bazës së të dhënave MySQL nga tabelat e Piwik-ut.",
|
||||
"RowCount": "Numërim rreshtash",
|
||||
"Table": "Tabelë",
|
||||
"TotalSize": "Madhësi gjithsej"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/sr.json
Normal file
21
www/analytics/plugins/DBStats/lang/sr.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Iskorišćenost baze",
|
||||
"DataSize": "Veličina podatka",
|
||||
"DBSize": "Veličina baze",
|
||||
"EstimatedSize": "Procenjena veličina",
|
||||
"IndexSize": "Veličina indeksa",
|
||||
"LearnMore": "Ukoliko želite da naučite više o tome kako Piwik procesira podatke i kako da ga naterate da dobro radi sa srednjim i velikim sajtovima, proučite dokumentaciju %s.",
|
||||
"MainDescription": "Piwik smešta sve vaše analitičke podatke u MySQL bazu. Trenutno Piwik tabele zauzimaju %s.",
|
||||
"MetricDataByYear": "Metrika po godinama",
|
||||
"MetricTables": "Metrika",
|
||||
"OtherTables": "Ostalo",
|
||||
"PluginDescription": "Ovaj dodatak prikazuje iskorišćenost MySQL baze od strane Piwik tabela.",
|
||||
"ReportDataByYear": "Izveštaji po godinama",
|
||||
"ReportTables": "Izveštaji",
|
||||
"RowCount": "Broj redova",
|
||||
"Table": "Tabela",
|
||||
"TotalSize": "Ukupna veličina",
|
||||
"TrackerTables": "Trekeri"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/sv.json
Normal file
21
www/analytics/plugins/DBStats/lang/sv.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Databasanvändning",
|
||||
"DataSize": "Datastorlek",
|
||||
"DBSize": "Databasstorlek",
|
||||
"EstimatedSize": "Uppskattad storlek",
|
||||
"IndexSize": "Indexstorlek",
|
||||
"LearnMore": "Om du vill veta mer om hur Piwik behandlar uppgifter och hur man gör för att Piwik ska fungera bra för medelhög och hög trafik webbplatser, kolla dokumentationen %s.",
|
||||
"MainDescription": "Piwik sparar all webbanalys data i MySQL databasen. För tillfället använder Piwik's tabeller %s.",
|
||||
"MetricDataByYear": "Variabler per år",
|
||||
"MetricTables": "Variabeltabeller",
|
||||
"OtherTables": "Övriga tabeller",
|
||||
"PluginDescription": "Denna plugin rapporterar Piwik's användning av tabeller i MySQL databasen.",
|
||||
"ReportDataByYear": "Raporttabeller per år",
|
||||
"ReportTables": "Rapporttabeller",
|
||||
"RowCount": "Radantal",
|
||||
"Table": "Tabell",
|
||||
"TotalSize": "Total storlek",
|
||||
"TrackerTables": "Spårningstabeller"
|
||||
}
|
||||
}
|
||||
15
www/analytics/plugins/DBStats/lang/ta.json
Normal file
15
www/analytics/plugins/DBStats/lang/ta.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "தரவுத்தளத்தின் பயன்பாடு",
|
||||
"DataSize": "தரவின் அளவு",
|
||||
"DBSize": "தரவுத்தளத்தின் அளவு",
|
||||
"EstimatedSize": "மதிப்பிட்டு அளவு",
|
||||
"IndexSize": "குறியீட்டு அளவு",
|
||||
"MetricDataByYear": "ஆண்டு அடிப்படையில் பதின்மான அட்டவணைகள்",
|
||||
"MetricTables": "அளவியல் அட்டவணைகள்",
|
||||
"PluginDescription": "இந்த சொருகி Piwk அட்டவனைகளின் MySQL தரவு தள பாவனை பற்றிய அறிக்கையை தரும்",
|
||||
"ReportTables": "அட்டவணை அறிக்கை",
|
||||
"Table": "அட்டவணை",
|
||||
"TotalSize": "மொத்த அளவு"
|
||||
}
|
||||
}
|
||||
6
www/analytics/plugins/DBStats/lang/te.json
Normal file
6
www/analytics/plugins/DBStats/lang/te.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"OtherTables": "ఇతర పట్టికలు",
|
||||
"Table": "పట్టిక"
|
||||
}
|
||||
}
|
||||
14
www/analytics/plugins/DBStats/lang/th.json
Normal file
14
www/analytics/plugins/DBStats/lang/th.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "การใช้ฐานข้อมูล",
|
||||
"DataSize": "ขนาดข้อมูล",
|
||||
"DBSize": "ขนาด DB",
|
||||
"IndexSize": "ขนาดของดรรชนี",
|
||||
"LearnMore": "เมื่อต้องการเรียนรู้เพิ่มเติมเกี่ยวกับวิธีการประมวลผลข้อมูลของ Piwik และวิธีการทำให้ Piwik ทำงานดีสำหรับเว็บไซต์ขนาดกลาง และจราจรจำนวนสูง อ่านเอกสารการใช้งานได้ที่ %s",
|
||||
"MainDescription": "Piwik ได้ทำการเก็บข้อมูลการวิเคราะห์เว็บไซต์ของคุณในฐานข้อมูล MySQL ขณะนี้ตารางฐานข้อมูลของ Piwik มีขนาดทั้งหมด %s",
|
||||
"PluginDescription": "ปลั๊กอินนี้รายงานการใช้งานฐานข้อมูล MySQL โดยตาราง Piwik",
|
||||
"RowCount": "จำนวนระเบียน",
|
||||
"Table": "ตาราง",
|
||||
"TotalSize": "ขนาดรวม"
|
||||
}
|
||||
}
|
||||
16
www/analytics/plugins/DBStats/lang/tr.json
Normal file
16
www/analytics/plugins/DBStats/lang/tr.json
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Veritabanı kullanımı",
|
||||
"DataSize": "Veri boyutu",
|
||||
"DBSize": "Veritabanı boyutu",
|
||||
"EstimatedSize": "Tahmin edilen boyut",
|
||||
"IndexSize": "Dizin boyutu",
|
||||
"MainDescription": "Piwik tüm web istatistiklerinizi MySQL veritabanında saklar. Piwik tabloları %s kullanıyor.",
|
||||
"OtherTables": "Diğer Tablolar",
|
||||
"PluginDescription": "Bu eklenti Piwik tabloları ile MySQL veritabanı kullanım raporu.",
|
||||
"ReportTables": "Rapor Tabloları",
|
||||
"RowCount": "Satır sayısı",
|
||||
"Table": "Tablo",
|
||||
"TotalSize": "Toplam boyut"
|
||||
}
|
||||
}
|
||||
13
www/analytics/plugins/DBStats/lang/uk.json
Normal file
13
www/analytics/plugins/DBStats/lang/uk.json
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Використання бази даних",
|
||||
"DataSize": "Розмір даних",
|
||||
"IndexSize": "Розмір індексів",
|
||||
"LearnMore": "Щоб зрозуміти більше як Piwik обробляє дані та як покращити роботу Piwik для сайтів з середнім та високим трафіком, перегляньте документацію %s.",
|
||||
"MainDescription": "Piwik зберігає всі дані для веб-аналітики в MySQL базі даних. На даний час, таблиці з даними Piwik займають %s",
|
||||
"PluginDescription": "Цей плагін надає звіт про використання бази даних таблицями Piwik.",
|
||||
"RowCount": "Перелік рядків",
|
||||
"Table": "Таблиця",
|
||||
"TotalSize": "Розмір таблиці"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/vi.json
Normal file
21
www/analytics/plugins/DBStats/lang/vi.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "Cơ sở dữ liệu đang sử dụng",
|
||||
"DataSize": "kích thước dữ liệu",
|
||||
"DBSize": "Kích thước cơ sở dữ liệu",
|
||||
"EstimatedSize": "kích thước đã ước tính",
|
||||
"IndexSize": "kích thước chỉ mục",
|
||||
"LearnMore": "Để tìm hiểu thêm về cách Piwik xử lý dữ liệu và cách làm cho Piwik làm việc tốt với các trang web có lượng truy cập trung bình và cao, hãy xem tài liệu này: %s.",
|
||||
"MainDescription": "Piwik lưu trữ tất cả dữ liệu phân tích web của bạn trong một cơ sở dữ liệu MySQL. Hiện nay, bảng Piwik chiếm %s không gian.",
|
||||
"MetricDataByYear": "Bảng thông số theo năm",
|
||||
"MetricTables": "Bảng tính",
|
||||
"OtherTables": "Bảng khác",
|
||||
"PluginDescription": "Plugin này báo cáo việc sử dụng cơ sở dữ liệu MySQL của bảng Piwik.",
|
||||
"ReportDataByYear": "Bảng báo cáo bởi năm",
|
||||
"ReportTables": "Bảng báo cáo",
|
||||
"RowCount": "Hàng đếm",
|
||||
"Table": "Bảng",
|
||||
"TotalSize": "Tổng kích thước",
|
||||
"TrackerTables": "Bộ theo dõi bảng"
|
||||
}
|
||||
}
|
||||
21
www/analytics/plugins/DBStats/lang/zh-cn.json
Normal file
21
www/analytics/plugins/DBStats/lang/zh-cn.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "数据库使用状况",
|
||||
"DataSize": "占用空间",
|
||||
"DBSize": "数据库大小",
|
||||
"EstimatedSize": "估计大小",
|
||||
"IndexSize": "索引空间大小",
|
||||
"LearnMore": "了解更多关于 Piwik 如何处理数据以及使 Piwik 在中高流量的网站上运作事宜,请查阅说明文件 %s。",
|
||||
"MainDescription": "Piwik 在MySQL中保存您的所有网站分析数据。 目前, Piwik 数据表已经使用了 %s!",
|
||||
"MetricDataByYear": "按年的指标表",
|
||||
"MetricTables": "指标表",
|
||||
"OtherTables": "其它表",
|
||||
"PluginDescription": "这个插件能报告 Piwik 的数据表使用情况。",
|
||||
"ReportDataByYear": "年度报表",
|
||||
"ReportTables": "报表",
|
||||
"RowCount": "行计算",
|
||||
"Table": "数据表",
|
||||
"TotalSize": "总容量",
|
||||
"TrackerTables": "跟踪表"
|
||||
}
|
||||
}
|
||||
14
www/analytics/plugins/DBStats/lang/zh-tw.json
Normal file
14
www/analytics/plugins/DBStats/lang/zh-tw.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"DBStats": {
|
||||
"DatabaseUsage": "資料庫使用狀況",
|
||||
"DataSize": "資料大小",
|
||||
"DBSize": "資料庫容量",
|
||||
"IndexSize": "索引大小",
|
||||
"LearnMore": "瞭解更多關於 Piwik 如何處理數據以及使 Piwik 在中高流量的網站上運作得宜,請查閱說明文件 %s。",
|
||||
"MainDescription": "Piwik 儲存所有你的網站分析資料於 MySQL 資料庫中。目前, Piwik 資料表已經使用了 %s。",
|
||||
"PluginDescription": "這個外掛能回報 Piwik 的資料表使用情形。",
|
||||
"RowCount": "資料列計數",
|
||||
"Table": "資料表",
|
||||
"TotalSize": "總容量"
|
||||
}
|
||||
}
|
||||
16
www/analytics/plugins/DBStats/stylesheets/dbStatsTable.less
Normal file
16
www/analytics/plugins/DBStats/stylesheets/dbStatsTable.less
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.dbstatsTable {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.dbstatsTable > tbody > tr > td:first-child {
|
||||
width: 550px;
|
||||
}
|
||||
|
||||
.dbstatsTable h2 {
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
.adminTable.dbstatsTable a {
|
||||
color: black;
|
||||
text-decoration: underline;
|
||||
}
|
||||
128
www/analytics/plugins/DBStats/templates/index.twig
Executable file
128
www/analytics/plugins/DBStats/templates/index.twig
Executable file
|
|
@ -0,0 +1,128 @@
|
|||
{% extends 'admin.twig' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2 id="databaseUsageSummary">{{ 'DBStats_DatabaseUsage'|translate }}</h2>
|
||||
<p>
|
||||
{{ 'DBStats_MainDescription'|translate(totalSpaceUsed) }}<br/>
|
||||
{{ 'DBStats_LearnMore'|translate("<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/setup-auto-archiving/' target='_blank'>Piwik Auto Archiving</a>")|raw }}
|
||||
<br/>
|
||||
<br/>
|
||||
</p>
|
||||
<table class="adminTable dbstatsTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ databaseUsageSummary|raw }}</td>
|
||||
<td>
|
||||
<h3 style="margin-top:0;">{{ 'General_GeneralInformation'|translate }}</h3><br/>
|
||||
|
||||
<p style="font-size:1.4em;padding-left:21px;line-height:1.8em;">
|
||||
<strong><em>{{ userCount }}</em></strong> {% if userCount == 1 %}{{ 'UsersManager_User'|translate }}{% else %}{{ 'UsersManager_MenuUsers'|translate }}{% endif %}
|
||||
<br/>
|
||||
<strong><em>{{ siteCount }}</em></strong> {% if siteCount == 1 %}{{ 'General_Website'|translate }}{% else %}{{ 'Referrers_Websites'|translate }}{% endif %}
|
||||
</p><br/>
|
||||
{% set clickDeleteLogSettings %}{{ 'PrivacyManager_DeleteDataSettings'|translate }}{% endset %}
|
||||
<h3 style="margin-top:0;">{{ 'PrivacyManager_DeleteDataSettings'|translate }}</h3><br/>
|
||||
|
||||
<p>
|
||||
{{ 'PrivacyManager_DeleteDataDescription'|translate }}
|
||||
<br/>
|
||||
<a href='{{ linkTo({'module':"PrivacyManager",'action':"privacySettings"}) }}#deleteLogsAnchor'>
|
||||
{{ 'PrivacyManager_ClickHereSettings'|translate("'"~clickDeleteLogSettings~"'") }}
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
|
||||
<table class="adminTable dbstatsTable" id="trackerDataSummary">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<h2>{{ 'DBStats_TrackerTables'|translate }}</h2>
|
||||
{{ trackerDataSummary|raw }}
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="adminTable dbstatsTable" id="reportDataSummary">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<h2>{{ 'DBStats_ReportTables'|translate }}</h2>
|
||||
{{ reportDataSummary|raw }}
|
||||
</td>
|
||||
<td>
|
||||
<h2>{{ 'General_Reports'|translate }}</h2>
|
||||
|
||||
<div class="ajaxLoad" action="getIndividualReportsSummary">
|
||||
<span class="loadingPiwik"><img src="plugins/Zeitgeist/images/loading-blue.gif"/>{{ 'General_LoadingData'|translate }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="adminTable dbstatsTable" id="metricDataSummary">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<h2>{{ 'DBStats_MetricTables'|translate }}</h2>
|
||||
{{ metricDataSummary|raw }}
|
||||
</td>
|
||||
<td>
|
||||
<h2>{{ 'General_Metrics'|translate }}</h2>
|
||||
|
||||
<div class="ajaxLoad" action="getIndividualMetricsSummary">
|
||||
<span class="loadingPiwik"><img src="plugins/Zeitgeist/images/loading-blue.gif"/>{{ 'General_LoadingData'|translate }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="adminTable dbstatsTable" id="adminDataSummary">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<h2>{{ 'DBStats_OtherTables'|translate }}</h2>
|
||||
{{ adminDataSummary|raw }}
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function ($) {
|
||||
$(document).ready(function () {
|
||||
$('.ajaxLoad').each(function () {
|
||||
var self = this;
|
||||
var action = $(this).attr('action');
|
||||
|
||||
// build & execute AJAX request
|
||||
var ajaxRequest = new ajaxHelper();
|
||||
ajaxRequest.addParams({
|
||||
module: 'DBStats',
|
||||
action: action,
|
||||
viewDataTable: 'table'
|
||||
}, 'get');
|
||||
ajaxRequest.setCallback(
|
||||
function (data) {
|
||||
$('.loadingPiwik', self).remove();
|
||||
$(self).html(data);
|
||||
}
|
||||
);
|
||||
ajaxRequest.setFormat('html');
|
||||
ajaxRequest.send(false);
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue