-
Notifications
You must be signed in to change notification settings - Fork 1
/
ExampleModuleReport.php
48 lines (40 loc) · 1 KB
/
ExampleModuleReport.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Example report.
*/
declare(strict_types=1);
namespace ExampleNamespace;
use Fisharebest\Webtrees\Module\AbstractModule;
use Fisharebest\Webtrees\Module\ModuleCustomInterface;
use Fisharebest\Webtrees\Module\ModuleCustomTrait;
use Fisharebest\Webtrees\Module\ModuleReportInterface;
use Fisharebest\Webtrees\Module\ModuleReportTrait;
class ExampleModuleReport extends AbstractModule implements ModuleCustomInterface, ModuleReportInterface {
use ModuleCustomTrait;
use ModuleReportTrait;
/**
* @return string
*/
public function title(): string
{
return 'Example module';
}
/**
* Where does this module store its resources
*
* @return string
*/
public function resourcesFolder(): string
{
return __DIR__ . '/resources/';
}
/**
* Name of the XML report file, relative to the resources folder.
*
* @return string
*/
public function xmlFilename(): string
{
return 'report.xml';
}
};