Example #1
0
 formato
 
 codigo_estat_conexao
 
 nome_esquema
 
 nome_tabela
 
 Retorno:
 
 {JSON}
 */
 case "DESCREVECOLUNASTABELA":
     $m = new Metaestat();
     if ($_GET["formato"] == "json") {
         $c = $m->descreveColunasTabela($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["nome_tabela"]);
         $s = $m->listaTabelaSerial($codigo_estat_conexao, $_GET["nome_esquema"], $_GET["nome_tabela"]);
         for ($i = 0; $i < count($c); $i++) {
             if ($c[$i]["field"] == $s) {
                 $c[$i]["serial"] = true;
             } else {
                 $c[$i]["serial"] = false;
             }
         }
         retornaJSON($c);
     }
     exit;
     break;
 case "ARVOREVAR":
     $m = new Metaestat();
     if (empty($codigo_variavel)) {