1a25f0a04SGreg Roach<?php 23976b470SGreg Roach 3a25f0a04SGreg Roach/** 4a25f0a04SGreg Roach * webtrees: online genealogy 5d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 6a25f0a04SGreg Roach * This program is free software: you can redistribute it and/or modify 7a25f0a04SGreg Roach * it under the terms of the GNU General Public License as published by 8a25f0a04SGreg Roach * the Free Software Foundation, either version 3 of the License, or 9a25f0a04SGreg Roach * (at your option) any later version. 10a25f0a04SGreg Roach * This program is distributed in the hope that it will be useful, 11a25f0a04SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 12a25f0a04SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13a25f0a04SGreg Roach * GNU General Public License for more details. 14a25f0a04SGreg 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/>. 16a25f0a04SGreg Roach */ 17fcfa147eSGreg Roach 18e7f56f2aSGreg Roachdeclare(strict_types=1); 19e7f56f2aSGreg Roach 2076692c8bSGreg Roachnamespace Fisharebest\Webtrees\Module; 21a25f0a04SGreg Roach 22168ff6f3Sric2016use Fisharebest\Webtrees\Individual; 234eb71cfaSGreg Roachuse Fisharebest\Webtrees\Menu; 24168ff6f3Sric2016 25a25f0a04SGreg Roach/** 26a25f0a04SGreg Roach * Interface ModuleChartInterface - Classes and libraries for module system 27a25f0a04SGreg Roach */ 2837eb8894SGreg Roachinterface ModuleChartInterface extends ModuleInterface 29c1010edaSGreg Roach{ 30168ff6f3Sric2016 /** 31377a2979SGreg Roach * A menu item for this chart for an individual box in a chart. 32377a2979SGreg Roach */ 33*1ff45046SGreg Roach public function chartBoxMenu(Individual $individual): Menu|null; 34377a2979SGreg Roach 35377a2979SGreg Roach /** 36e6562982SGreg Roach * A main menu item for this chart. 37168ff6f3Sric2016 * 3860bc3e3fSGreg Roach * @param Individual $individual 3960bc3e3fSGreg Roach * 40e6562982SGreg Roach * @return Menu 41168ff6f3Sric2016 */ 42e6562982SGreg Roach public function chartMenu(Individual $individual): Menu; 43168ff6f3Sric2016 44168ff6f3Sric2016 /** 45377a2979SGreg Roach * CSS class for the menu. 46168ff6f3Sric2016 * 47377a2979SGreg Roach * @return string 48168ff6f3Sric2016 */ 49377a2979SGreg Roach public function chartMenuClass(): string; 50e6562982SGreg Roach 51e6562982SGreg Roach /** 52e6562982SGreg Roach * The title for a specific instance of this chart. 53e6562982SGreg Roach * 54e6562982SGreg Roach * @param Individual $individual 55e6562982SGreg Roach * 56e6562982SGreg Roach * @return string 57e6562982SGreg Roach */ 58e6562982SGreg Roach public function chartTitle(Individual $individual): string; 59e6562982SGreg Roach 60e6562982SGreg Roach /** 61e539f5c6SGreg Roach * The URL for a page showing chart options. 62e6562982SGreg Roach * 63e6562982SGreg Roach * @param Individual $individual 6476d39c55SGreg Roach * @param array<bool|int|string|array<string>|null> $parameters 65e6562982SGreg Roach * 66e6562982SGreg Roach * @return string 67e6562982SGreg Roach */ 68e6562982SGreg Roach public function chartUrl(Individual $individual, array $parameters = []): string; 69e6562982SGreg Roach 70e6562982SGreg Roach /** 71e6562982SGreg Roach * Attributes for the URL. 72e6562982SGreg Roach * 7324f2a3afSGreg Roach * @return array<string> 74e6562982SGreg Roach */ 75e6562982SGreg Roach public function chartUrlAttributes(): array; 76a25f0a04SGreg Roach} 77