git-svn-id: https://msi/svn/firstRepo/Service/branches/Manut_2.2.3@49 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-01-15 17:04:16 +00:00
parent b371156b94
commit 0f64cd747d
22 changed files with 1942 additions and 113 deletions
+13 -1
View File
@@ -30,7 +30,7 @@ $app->get('/typeqtys', function () use ($app) {
returnJsonWithDecode($app, $callbackFn, $retObj);
});
$app->get('/categoryitems/:catID', function ($categoryID) use ($app) {
$app->get('/ricette/:catID', function ($categoryID) use ($app) {
$callbackFn = $app->request()->get('callback');
$mysqlconnetion = new MysqlClass;
//$mysqlconnetion->connetti();
@@ -197,6 +197,18 @@ $app->get('/statistics/themesUsage', function () use ($app) {
$query = "SELECT 'TemaUI' as Type, TemaUI as Serie, COUNT(TemaUI) as CountSerie from profilo GROUP BY TemaUI";
$mysqlconnetion = new MysqlClass;
//$mysqlconnetion->connetti();
$retObj = $mysqlconnetion->queryToObject($query);
$mysqlconnetion->disconnetti();
returnJson($app, $callbackFn, $retObj);
});
$app->get('/profiles', function () use ($app) {
$callbackFn = $app->request()->get('callback');
$query = "SELECT ProfiloID as id, Name as name from profilo where name <> '' order by Name";
$mysqlconnetion = new MysqlClass;
//$mysqlconnetion->connetti();
$retObj = $mysqlconnetion->queryToObject($query);