xref: /webtrees/app/Module/ModuleFooterInterface.php (revision d11be7027e34e3121be11cc025421873364403f9)
133c34396SGreg Roach<?php
23976b470SGreg Roach
333c34396SGreg Roach/**
433c34396SGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
633c34396SGreg Roach * This program is free software: you can redistribute it and/or modify
733c34396SGreg Roach * it under the terms of the GNU General Public License as published by
833c34396SGreg Roach * the Free Software Foundation, either version 3 of the License, or
933c34396SGreg Roach * (at your option) any later version.
1033c34396SGreg Roach * This program is distributed in the hope that it will be useful,
1133c34396SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1233c34396SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1333c34396SGreg Roach * GNU General Public License for more details.
1433c34396SGreg 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/>.
1633c34396SGreg Roach */
17fcfa147eSGreg Roach
1833c34396SGreg Roachdeclare(strict_types=1);
1933c34396SGreg Roach
2033c34396SGreg Roachnamespace Fisharebest\Webtrees\Module;
2133c34396SGreg Roach
22a992e8c1SGreg Roachuse Psr\Http\Message\ServerRequestInterface;
230c8c69d4SGreg Roach
2433c34396SGreg Roach/**
2533c34396SGreg Roach * Interface ModuleFooterInterface - Add content to the bottom of every page.
2633c34396SGreg Roach */
2733c34396SGreg Roachinterface ModuleFooterInterface extends ModuleInterface
2833c34396SGreg Roach{
2933c34396SGreg Roach    /**
3033c34396SGreg Roach     * Users change change the order of footers using the control panel.
3133c34396SGreg Roach     *
3233c34396SGreg Roach     * @param int $footer_order
3333c34396SGreg Roach     *
3433c34396SGreg Roach     * @return void
3533c34396SGreg Roach     */
3633c34396SGreg Roach    public function setFooterOrder(int $footer_order): void;
3733c34396SGreg Roach
3833c34396SGreg Roach    /**
3933c34396SGreg Roach     * Users change change the order of footers using the control panel.
4033c34396SGreg Roach     *
4133c34396SGreg Roach     * @return int
4233c34396SGreg Roach     */
4333c34396SGreg Roach    public function getFooterOrder(): int;
4433c34396SGreg Roach
4533c34396SGreg Roach    /**
4633c34396SGreg Roach     * The default position for this footer.  It can be changed in the control panel.
4733c34396SGreg Roach     *
4833c34396SGreg Roach     * @return int
4933c34396SGreg Roach     */
5033c34396SGreg Roach    public function defaultFooterOrder(): int;
5133c34396SGreg Roach
5233c34396SGreg Roach    /**
5333c34396SGreg Roach     * A footer, to be added at the bottom of every page.
5433c34396SGreg Roach     *
55a992e8c1SGreg Roach     * @param ServerRequestInterface $request
560c8c69d4SGreg Roach     *
5733c34396SGreg Roach     * @return string
5833c34396SGreg Roach     */
59a992e8c1SGreg Roach    public function getFooter(ServerRequestInterface $request): string;
6033c34396SGreg Roach}
61