Example #1
0
            if ($tabla == "EDITORIAL") {
                $editorialBuscar = new Editorial();
                //Editorial por defecto (ListarĂ¡ todas las editoriales)
                $param = array('descripcion' => $editorialBuscar->getDescripcion());
                $response = $client->call('listadoEditoriales', $param);
            }
            if ($tabla == "AREA") {
                $response = $client->call('listadoAreas');
            }
            if ($tabla == "SEDE") {
                $response = $client->call('listadoSedes');
            }
            if ($tabla == "PAIS") {
                $response = $client->call('listadoPaises');
            }
            if ($tabla == "CIUDAD") {
                $idPais = $_POST['idPais'];
                //En caso de 0 o vacio, listara todas las ciudades
                $param = array('idPais' => $idPais);
                $response = $client->call('listadoCiudades', $param);
            }
            if ($tabla == "AUTOR") {
                $autorBuscar = new Autor();
                //Autor por defecto (ListarĂ¡ todos los autores)
                $param = array('primerNombre' => $autorBuscar->getPrimerNombre(), 'segundoNombre' => $autorBuscar->getSegundoNombre(), 'primerApellido' => $autorBuscar->getPrimerApellido(), 'segundoApellido' => $autorBuscar->getSegundoApellido(), 'tipo' => $autorBuscar->getTipoAutor());
                $response = $client->call('listadoAutores', $param);
            }
            echo json_encode($response);
            break;
    }
}