122e73debSGreg Roach<?php 222e73debSGreg Roach 322e73debSGreg Roach/** 422e73debSGreg Roach * webtrees: online genealogy 55bfc6897SGreg Roach * Copyright (C) 2022 webtrees development team 622e73debSGreg Roach * This program is free software: you can redistribute it and/or modify 722e73debSGreg Roach * it under the terms of the GNU General Public License as published by 822e73debSGreg Roach * the Free Software Foundation, either version 3 of the License, or 922e73debSGreg Roach * (at your option) any later version. 1022e73debSGreg Roach * This program is distributed in the hope that it will be useful, 1122e73debSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 1222e73debSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1322e73debSGreg Roach * GNU General Public License for more details. 1422e73debSGreg Roach * You should have received a copy of the GNU General Public License 1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 1622e73debSGreg Roach */ 1722e73debSGreg Roach 1822e73debSGreg Roachdeclare(strict_types=1); 1922e73debSGreg Roach 2022e73debSGreg Roachnamespace Fisharebest\Webtrees\Http\RequestHandlers; 2122e73debSGreg Roach 22*748dbe15SGreg Roachuse Fisharebest\Webtrees\Validator; 2322e73debSGreg Roachuse Psr\Http\Message\ResponseInterface; 2422e73debSGreg Roachuse Psr\Http\Message\ServerRequestInterface; 2522e73debSGreg Roachuse Psr\Http\Server\RequestHandlerInterface; 2622e73debSGreg Roach 2722e73debSGreg Roach/** 2822e73debSGreg Roach * Show pending changes. 2922e73debSGreg Roach */ 3022e73debSGreg Roachclass PendingChangesLogAction implements RequestHandlerInterface 3122e73debSGreg Roach{ 3222e73debSGreg Roach /** 3322e73debSGreg Roach * @param ServerRequestInterface $request 3422e73debSGreg Roach * 3522e73debSGreg Roach * @return ResponseInterface 3622e73debSGreg Roach */ 3722e73debSGreg Roach public function handle(ServerRequestInterface $request): ResponseInterface 3822e73debSGreg Roach { 3922e73debSGreg Roach return redirect(route(PendingChangesLogPage::class, [ 40*748dbe15SGreg Roach 'tree' => Validator::parsedBody($request)->string('tree'), 41*748dbe15SGreg Roach 'from' => Validator::parsedBody($request)->string('from'), 42*748dbe15SGreg Roach 'to' => Validator::parsedBody($request)->string('to'), 43*748dbe15SGreg Roach 'type' => Validator::parsedBody($request)->string('type'), 44*748dbe15SGreg Roach 'oldged' => Validator::parsedBody($request)->string('oldged'), 45*748dbe15SGreg Roach 'newged' => Validator::parsedBody($request)->string('newged'), 46*748dbe15SGreg Roach 'xref' => Validator::parsedBody($request)->string('xref'), 47*748dbe15SGreg Roach 'username' => Validator::parsedBody($request)->string('username'), 4822e73debSGreg Roach ])); 4922e73debSGreg Roach } 5022e73debSGreg Roach} 51