Ejemplo n.º 1
0
 protected function GenerateResponse()
 {
     try {
         $this->response = POSController::NuevaColumnaBd(isset($_POST['campo']) ? $_POST['campo'] : null, isset($_POST['caption']) ? $_POST['caption'] : null, isset($_POST['obligatorio']) ? $_POST['obligatorio'] : null, isset($_POST['tabla']) ? $_POST['tabla'] : null, isset($_POST['tipo']) ? $_POST['tipo'] : null, isset($_POST['descripcion']) ? $_POST['descripcion'] : "", isset($_POST['longitud']) ? $_POST['longitud'] : "");
     } catch (Exception $e) {
         //Logger::error($e);
         throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage()));
     }
 }