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>2018-01-11 02:23:40 +0300
committerGitHub <noreply@github.com>2018-01-11 02:23:40 +0300
commit07adf0ac04dfb8f35be41d9add1855b6e646f8db (patch)
tree5c3b3d0db2ef82c663d34551394a9ede03167e82 /plugins/ExampleAPI
parent62e3c3f89a4c8bb29f710901de7d62e6576e03cd (diff)
Show Matomo instead of Piwik in the user interface in more places (#12421)
* Replace all occurences of Piwik in english translations of Actions plugin * translation update * Replace all occurences of Piwik in english translations of API plugin * translation update * Replace all occurences of Piwik in english translations of core * replace Piwik occurrences * Rename widget piwik.org blog => matomo.org blog * fix widget name * replaced some more piwik mentions * Renamed to Matomo a few strings * Replaced more strings to Matomo in JSON files, twig templates * Replaced more strings to Matomo in INI file * Replaced more strings to Matomo in API docs, error messages, feedback forms * introduce API.getMatomoVersion and ExampleAPI.getMatomoVersion API + deprecate old ones
Diffstat (limited to 'plugins/ExampleAPI')
-rw-r--r--plugins/ExampleAPI/API.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/plugins/ExampleAPI/API.php b/plugins/ExampleAPI/API.php
index f0d331c010..d508011d3f 100644
--- a/plugins/ExampleAPI/API.php
+++ b/plugins/ExampleAPI/API.php
@@ -14,24 +14,35 @@ use Piwik\Piwik;
use Piwik\Version;
/**
- * The ExampleAPI is useful to developers building a custom Piwik plugin.
+ * The ExampleAPI is useful to developers building a custom Matomo plugin.
*
* Please see the <a href='https://github.com/piwik/piwik/blob/master/plugins/ExampleAPI/API.php' rel='noreferrer' target='_blank'>source code in in the file plugins/ExampleAPI/API.php</a> for more documentation.
* @method static \Piwik\Plugins\ExampleAPI\API getInstance()
*/
class API extends \Piwik\Plugin\API
{
+
/**
- * Get Piwik version
+ * Get Matomo version
* @return string
*/
- public function getPiwikVersion()
+ public function getMatomoVersion()
{
Piwik::checkUserHasSomeViewAccess();
return Version::VERSION;
}
/**
+ * Get Matomo version
+ * @return string
+ * @deprecated
+ */
+ public function getPiwikVersion()
+ {
+ return $this->getMatomoVersion();
+ }
+
+ /**
* Get Answer to Life
* @return integer
*/
@@ -46,7 +57,7 @@ class API extends \Piwik\Plugin\API
* If used internally, the data structure can be returned untouched by using
* the API parameter 'format=original'
*
- * @return MagicObject Will return a standard Piwik error when called from the Web APIs
+ * @return MagicObject Will return a standard Matomo error when called from the Web APIs
*/
public function getObject()
{