Example #1
0
 
 codigo_estat_conexao
 
 nome_esquema
 
 Retorno:
 
 {JSON}
 */
 case "TABELASESQUEMA":
     $m = new Metaestat();
     if (empty($_GET["excluigeom"])) {
         $_GET["excluigeom"] = "";
     }
     if ($_GET["formato"] == "json") {
         retornaJSON($m->tabelasEsquema($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["excluigeom"]));
     }
     exit;
     break;
 case "CRIATABELADB":
     $m = new Metaestat();
     if ($nome_esquema != "i3geo_metaestat") {
         retornaJSON("erro");
         exit;
     }
     retornaJSON($m->criaTabelaDB($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["nome_tabela"], $_GET["comentario"]));
     exit;
     break;
 case "CRIAESQUEMADB":
     $m = new Metaestat();
     retornaJSON($m->criaEsquemaDB($codigo_estat_conexao, $_GET["nome_esquema"]));