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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-12-12 13:54:03 +0300
committerGitHub <noreply@github.com>2016-12-12 13:54:03 +0300
commit53454e8efd0ab2a03dd9bb9f837aa63f36cfe552 (patch)
treebe7dc483dad0dcac6577b73e9e82ede7bc097682 /core/Measurable/Type/TypeManager.php
parentb1c09fa5123155ab9cd79342a4a0cef42e80de7f (diff)
parent67f2661f24602a07ebee66172f8446887ab83787 (diff)
Merge pull request #10994 from piwik/3.x-dev3.0.0-rc2
3.0.0-rc2 release
Diffstat (limited to 'core/Measurable/Type/TypeManager.php')
-rw-r--r--core/Measurable/Type/TypeManager.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Measurable/Type/TypeManager.php b/core/Measurable/Type/TypeManager.php
index a514abbbdc..8a886d29d5 100644
--- a/core/Measurable/Type/TypeManager.php
+++ b/core/Measurable/Type/TypeManager.php
@@ -29,6 +29,17 @@ class TypeManager
return $instances;
}
+ public function isExistingType($typeId)
+ {
+ foreach ($this->getAllTypes() as $type) {
+ if ($type->getId() === $typeId) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
/**
* @param string $typeId
* @return Type|null