Subir archivos a "clases"
This commit is contained in:
@@ -35,7 +35,7 @@ class Categoria{
|
|||||||
}catch(PDOException $error){
|
}catch(PDOException $error){
|
||||||
$respuesta = [
|
$respuesta = [
|
||||||
'error' => 'Ocurrió un error al guardar la categoría.',
|
'error' => 'Ocurrió un error al guardar la categoría.',
|
||||||
'error_tecnico' => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
|
|
||||||
$conexion = null;
|
$conexion = null;
|
||||||
@@ -64,7 +64,7 @@ class Categoria{
|
|||||||
}catch(PDOException $error){
|
}catch(PDOException $error){
|
||||||
$respuesta = [
|
$respuesta = [
|
||||||
'error' => 'Ocurrió un error al obtener el listado de categorías.',
|
'error' => 'Ocurrió un error al obtener el listado de categorías.',
|
||||||
'error_tecnico' => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
|
|
||||||
$conexion = null;
|
$conexion = null;
|
||||||
@@ -94,7 +94,7 @@ class Categoria{
|
|||||||
}catch(PDOException $error){
|
}catch(PDOException $error){
|
||||||
$respuesta = [
|
$respuesta = [
|
||||||
'error' => 'Ocurrió un error al buscar la categoría.',
|
'error' => 'Ocurrió un error al buscar la categoría.',
|
||||||
'error_tecnico' => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
|
|
||||||
$conexion = null;
|
$conexion = null;
|
||||||
@@ -134,7 +134,7 @@ class Categoria{
|
|||||||
}catch(PDOException $error){
|
}catch(PDOException $error){
|
||||||
$respuesta = [
|
$respuesta = [
|
||||||
'error' => 'Ocurrió un error al eliminar la categoría.',
|
'error' => 'Ocurrió un error al eliminar la categoría.',
|
||||||
'error_tecnico' => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
|
|
||||||
$conexion = null;
|
$conexion = null;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class Equipo{
|
|||||||
}catch(PDOException $error){
|
}catch(PDOException $error){
|
||||||
$respuesta = [
|
$respuesta = [
|
||||||
'error' => 'Ocurrió un error al guardar el equipo.',
|
'error' => 'Ocurrió un error al guardar el equipo.',
|
||||||
'error_tecnico' => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
|
|
||||||
$conexion = null;
|
$conexion = null;
|
||||||
@@ -64,7 +64,7 @@ class Equipo{
|
|||||||
}catch(PDOException $error){
|
}catch(PDOException $error){
|
||||||
$respuesta = [
|
$respuesta = [
|
||||||
'error' => 'Ocurrió un error al obtener el listado de equipos.',
|
'error' => 'Ocurrió un error al obtener el listado de equipos.',
|
||||||
'error_tecnico' => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
|
|
||||||
$conexion = null;
|
$conexion = null;
|
||||||
@@ -94,7 +94,7 @@ class Equipo{
|
|||||||
}catch(PDOException $error){
|
}catch(PDOException $error){
|
||||||
$respuesta = [
|
$respuesta = [
|
||||||
'error' => 'Ocurrió un error al buscar el equipo.',
|
'error' => 'Ocurrió un error al buscar el equipo.',
|
||||||
'error_tecnico' => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
|
|
||||||
$conexion = null;
|
$conexion = null;
|
||||||
|
|||||||
+11
-11
@@ -41,7 +41,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al guardar la partida.",
|
"error" => "Ocurrió un error al guardar la partida.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al obtener el listado.",
|
"error" => "Ocurrió un error al obtener el listado.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -82,7 +82,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al buscar la partida.",
|
"error" => "Ocurrió un error al buscar la partida.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -112,7 +112,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al editar la partida.",
|
"error" => "Ocurrió un error al editar la partida.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -137,7 +137,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "No se pudo eliminar la partida.",
|
"error" => "No se pudo eliminar la partida.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -169,7 +169,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al recuperar las preguntas de la partida.",
|
"error" => "Ocurrió un error al recuperar las preguntas de la partida.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -200,7 +200,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al asignar la pregunta.",
|
"error" => "Ocurrió un error al asignar la pregunta.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -224,7 +224,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al contar las preguntas.",
|
"error" => "Ocurrió un error al contar las preguntas.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -252,7 +252,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al contar las respuestas del usuario.",
|
"error" => "Ocurrió un error al contar las respuestas del usuario.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -296,7 +296,7 @@ class Partida
|
|||||||
} catch (PDOException $error) {
|
} catch (PDOException $error) {
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al recuperar las partidas del usuario.",
|
"error" => "Ocurrió un error al recuperar las partidas del usuario.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -328,7 +328,7 @@ class Partida
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
"error" => "Ocurrió un error al comprobar la pregunta.",
|
"error" => "Ocurrió un error al comprobar la pregunta.",
|
||||||
"error_tecnico" => $error
|
'error_tecnico' => $error->getMessage()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user