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:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-12-08 17:08:24 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-12-08 17:08:24 +0300
commit950f70679188761888741605910105f8091cb989 (patch)
tree00a6cb5a31bdd30706ae5e7959d78993308d9181 /plugins/API
parent9673afaf760a3f81d58aa98eaac50e3ed40a157f (diff)
- cleaning the API/ code
- deleting class Api_Apiable concept not used anymore
Diffstat (limited to 'plugins/API')
-rw-r--r--plugins/API/Controller.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php
index 60602f585e..2b21cd9883 100644
--- a/plugins/API/Controller.php
+++ b/plugins/API/Controller.php
@@ -10,7 +10,7 @@
*/
require_once "API/Request.php";
-
+require_once "API/DocumentationGenerator.php";
/**
*
@@ -27,7 +27,8 @@ class Piwik_API_Controller extends Piwik_Controller
public function listAllMethods()
{
$this->init();
- echo Piwik_API_Proxy::getInstance()->getAllInterfaceString( $outputExampleUrls = true, $prefixUrls = Piwik_Common::getRequestVar('prefixUrl', '') );
+ $ApiDocumentation = new Piwik_API_DocumentationGenerator();
+ echo $ApiDocumentation->getAllInterfaceString( $outputExampleUrls = true, $prefixUrls = Piwik_Common::getRequestVar('prefixUrl', '') );
}
public function listAllAPI()
@@ -35,7 +36,8 @@ class Piwik_API_Controller extends Piwik_Controller
$view = new Piwik_View("API/templates/listAllAPI.tpl");
$this->setGeneralVariablesView($view);
$view->countLoadedAPI = $this->init();
- $view->list_api_methods_with_links = Piwik_API_Proxy::getInstance()->getAllInterfaceString();
+ $ApiDocumentation = new Piwik_API_DocumentationGenerator();
+ $view->list_api_methods_with_links = $ApiDocumentation->getAllInterfaceString();
echo $view->render();
}