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:
authordiosmosis <benaka@piwik.pro>2014-11-25 16:06:41 +0300
committerdiosmosis <benaka@piwik.pro>2014-11-25 16:06:41 +0300
commit44f43bb21cb2e89d537fd80f16a73d498548edf4 (patch)
tree2810e05e0b0c0446cabf9e4a4d158ea880316eb3 /core/DataTable.php
parent1eb47806339a2870b779195b404e7a06044bacf8 (diff)
Moving DataTable::getSiteIdFromMetadata to Piwik\Archie\DataTableFactory.
Diffstat (limited to 'core/DataTable.php')
-rw-r--r--core/DataTable.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/DataTable.php b/core/DataTable.php
index bdb7ef4f99..61e8abb1eb 100644
--- a/core/DataTable.php
+++ b/core/DataTable.php
@@ -1679,21 +1679,4 @@ class DataTable implements DataTableInterface, \IteratorAggregate, \ArrayAccess
{
$this->deleteRow($offset);
}
-
- /**
- * Returns the ID of the site a table is related to based on the 'site' metadata entry,
- * or null if there is none.
- *
- * @param DataTable $table
- * @return int|null
- */
- public static function getSiteIdFromMetadata(DataTable $table)
- {
- $site = $table->getMetadata('site');
- if (empty($site)) {
- return null;
- } else {
- return $site->getId();
- }
- }
} \ No newline at end of file