Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Goals/API.php')
-rw-r--r--plugins/Goals/API.php130
1 files changed, 0 insertions, 130 deletions
diff --git a/plugins/Goals/API.php b/plugins/Goals/API.php
index d3dd615509..c361ab323e 100644
--- a/plugins/Goals/API.php
+++ b/plugins/Goals/API.php
@@ -778,136 +778,6 @@ class API extends \Piwik\Plugin\API
}
/**
- * Gets a DataTable that maps pages to the count of conversions that occurred on visits
- * where the page was viewed before conversion for the specified site, date range, segment and goal.
- *
- * @param int $idSite The site to select data from.
- * @param string $period The period type.
- * @param string $date The date type.
- * @param string|bool $segment The segment.
- * @param int|bool $idGoal The id of the goal to get data for. If this is set to false,
- * data for every goal that belongs to $idSite is returned.
- *
- * @return bool|DataTable
- */
- public function getPagesUrl($idSite, $period, $date, $segment = false, $idGoal = false)
- {
- Piwik::checkUserHasViewAccess($idSite);
- $dataTable = Archive::createDataTableFromArchive('Actions_actions_url', $idSite, $period, $date, $segment);
- $this->applyPagesFilters($dataTable, $idGoal);
-
- return $dataTable;
- }
-
- /**
- * Gets a DataTable that maps page titles to the count of conversions that occurred on visits
- * where the page was viewed before conversion for the specified site, date range, segment and goal.
- *
- * @param int $idSite The site to select data from.
- * @param string $period The period type.
- * @param string $date The date type.
- * @param string|bool $segment The segment.
- * @param int|bool $idGoal The id of the goal to get data for. If this is set to false,
- * data for every goal that belongs to $idSite is returned.
- *
- * @return bool|DataTable
- */
- public function getPagesTitles($idSite, $period, $date, $segment = false, $idGoal = false)
- {
- Piwik::checkUserHasViewAccess($idSite);
- $dataTable = Archive::createDataTableFromArchive('Actions_actions', $idSite, $period, $date, $segment);
- $this->applyPagesFilters($dataTable, $idGoal);
-
- return $dataTable;
- }
-
- /**
- * Apply datatable filters for page reports
- *
- * @param $dataTable
- * @param $idGoal
- *
- * @return bool|DataTable
- */
- private function applyPagesFilters($dataTable, $idGoal)
- {
- if ($dataTable) {
- $dataTable->queueFilter('Piwik\Plugins\Goals\DataTable\Filter\CalculateConversionPageRate');
- $dataTable->queueFilter('ReplaceColumnNames');
- $dataTable->queueFilter('Piwik\Plugins\Goals\DataTable\Filter\RemoveUnusedGoalRevenueColumns');
- $colsToRemove = ['idaction', 'type', 'nb_conversions', 'revenue', 'nb_visits'];
- $dataTable->queueFilter('ColumnDelete', array($colsToRemove));
- $nestedColsToRemove = ['nb_conversions', 'nb_visits_converted', 'nb_conv_pages_before', 'nb_conversions_page_uniq'];
- $dataTable->queueFilter('ColumnDelete', array($nestedColsToRemove, [], false, true));
- }
-
- return $dataTable;
- }
-
- /**
- * Gets a DataTable that maps entry pages to the count of conversions that occurred on visits that started on
- * each entry page and resulted in a conversion, for the specified site, date range, segment and goal.
- *
- * @param int $idSite The site to select data from.
- * @param string $period The period type.
- * @param string $date The date type.
- * @param string|bool $segment The segment.
- * @param int|bool $idGoal The id of the goal to get data for. If this is set to false,
- * data for every goal that belongs to $idSite is returned.
- *
- * @return bool|DataTable
- */
- public function getPagesEntry($idSite, $period, $date, $segment = false, $idGoal = false)
- {
- Piwik::checkUserHasViewAccess($idSite);
- $dataTable = Archive::createDataTableFromArchive('Actions_actions_url', $idSite, $period, $date, $segment);
- $this->applyPagesEntryFilters($dataTable);
-
- return $dataTable;
- }
-
- /**
- * Gets a DataTable that maps entry pages by titles to the count of conversions that occurred on visits that started
- * on each entry page and resulted in a conversion, for the specified site, date range, segment and goal.
- *
- * @param int $idSite The site to select data from.
- * @param string $period The period type.
- * @param string $date The date type.
- * @param string|bool $segment The segment.
- * @param int|bool $idGoal The id of the goal to get data for. If this is set to false,
- * data for every goal that belongs to $idSite is returned.
- *
- * @return bool|DataTable
- */
- public function getPagesEntryTitles($idSite, $period, $date, $segment = false, $idGoal = false)
- {
- Piwik::checkUserHasViewAccess($idSite);
- $dataTable = Archive::createDataTableFromArchive('Actions_actions', $idSite, $period, $date, $segment);
- $this->applyPagesEntryFilters($dataTable);
-
- return $dataTable;
- }
-
- /**
- * Apply datatable filters for entry page reports
- *
- * @param $dataTable
- *
- * @return bool|DataTable
- */
- private function applyPagesEntryFilters($dataTable)
- {
- if ($dataTable) {
- $dataTable->queueFilter('ReplaceColumnNames');
- $dataTable->queueFilter('Piwik\Plugins\Goals\DataTable\Filter\RemoveUnusedGoalRevenueColumns');
- $dataTable->queueFilter('ColumnDelete',
- array($columnsToRemove = ['idaction', 'nb_visits', 'entry_nb_uniq_visitors', 'revenue', 'nb_conversions']));
- }
-
- return $dataTable;
- }
-
- /**
* Enhances the dataTable with Items attributes found in the Custom Variables report.
*
* @param $dataTable