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:
authormattab <matthieu.aubry@gmail.com>2013-08-11 13:19:59 +0400
committermattab <matthieu.aubry@gmail.com>2013-08-11 13:19:59 +0400
commitf9b15e948fc9639ada0f925a5d450e6e158b5f56 (patch)
tree3d6a25c8a271deee7d1136a11c11926be1d33529 /plugins/Actions/API.php
parenta96ec40e983a8b64f4c25def541a519ff3670e6a (diff)
parent64ca5d548c0cf0c4eef9f5f104901fbf14800127 (diff)
Merge remote-tracking branch 'origin/master' into plugin_namespaces
Conflicts: core/Tracker/Request.php core/ViewDataTable.php core/ViewDataTable/HtmlTable/Goals.php plugins/Actions/Actions.php plugins/Annotations/API.php plugins/CoreHome/CoreHome.php plugins/DBStats/DBStats.php plugins/DevicesDetection/DevicesDetection.php plugins/Goals/Goals.php plugins/Live/Live.php plugins/Referers/Referers.php plugins/UserSettings/UserSettings.php plugins/UsersManager/API.php plugins/VisitTime/VisitTime.php plugins/VisitorInterest/VisitorInterest.php
Diffstat (limited to 'plugins/Actions/API.php')
-rw-r--r--plugins/Actions/API.php20
1 files changed, 16 insertions, 4 deletions
diff --git a/plugins/Actions/API.php b/plugins/Actions/API.php
index 1804ca4a07..81402e5f2d 100644
--- a/plugins/Actions/API.php
+++ b/plugins/Actions/API.php
@@ -129,9 +129,11 @@ class API
*
* @return DataTable|DataTable\Map
*/
- public function getPageUrls($idSite, $period, $date, $segment = false, $expanded = false, $idSubtable = false)
+ public function getPageUrls($idSite, $period, $date, $segment = false, $expanded = false, $idSubtable = false,
+ $depth = false)
{
- $dataTable = Archive::getDataTableFromArchive('Actions_actions_url', $idSite, $period, $date, $segment, $expanded, $idSubtable);
+ $dataTable = Archive::getDataTableFromArchive(
+ 'Actions_actions_url', $idSite, $period, $date, $segment, $expanded, $idSubtable, $depth);
$this->filterPageDatatable($dataTable);
$this->filterActionsDataTable($dataTable, $expanded);
return $dataTable;
@@ -295,7 +297,12 @@ class API
return $dataTable;
}
- //Visitors can search, and then click "next" to view more results. This is the average number of search results pages viewed for this keyword.
+ /**
+ * Visitors can search, and then click "next" to view more results. This is the average number of search results pages viewed for this keyword.
+ *
+ * @param DataTable|DataTable\Simple|DataTable\Map $dataTable
+ * @param string $columnToRead
+ */
protected function addPagesPerSearchColumn($dataTable, $columnToRead = 'nb_hits')
{
$dataTable->filter('ColumnCallbackAddColumnQuotient', array('nb_pages_per_search', $columnToRead, 'nb_visits', $precision = 1));
@@ -469,6 +476,8 @@ class API
/**
* Common filters for Page URLs and Page Titles
+ *
+ * @param DataTable|DataTable\Simple|DataTable\Map $dataTable
*/
protected function filterPageDatatable($dataTable)
{
@@ -513,7 +522,10 @@ class API
}
/**
- * Common filters for all Actions API getters
+ * Common filters for all Actions API
+ *
+ * @param DataTable|DataTable\Simple|DataTable\Map $dataTable
+ * @param bool $expanded
*/
protected function filterActionsDataTable($dataTable, $expanded = false)
{