1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-18 03:09:32 +01:00
openstamanager/modules/articoli/api/retrieve.php
2018-08-28 15:39:51 +02:00

13 lines
333 B
PHP

<?php
switch ($resource) {
case 'articoli':
$query = 'SELECT *, (SELECT nome FROM mg_categorie WHERE id = mg_articoli.id_categoria) AS categoria, (SELECT nome FROM mg_categorie WHERE id = mg_articoli.id_sottocategoria) AS sottocategoria FROM mg_articoli WHERE attivo = 1';
break;
}
return [
'articoli',
];