diff options
| author | Greg Roach <fisharebest@gmail.com> | 2018-01-27 16:55:29 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2018-01-27 17:15:50 +0000 |
| commit | 299d100d2d85cd31f10efd927570655dd165b510 (patch) | |
| tree | bca1a16eef5b1d5fbe5655fd998cbcb0133734d4 /app/Report/ReportParserBase.php | |
| parent | 1c4e843d2f93e9d33db51f032fed37e47f140c1c (diff) | |
| download | webtrees-299d100d2d85cd31f10efd927570655dd165b510.tar.gz webtrees-299d100d2d85cd31f10efd927570655dd165b510.tar.bz2 webtrees-299d100d2d85cd31f10efd927570655dd165b510.zip | |
Use views for reports
Diffstat (limited to 'app/Report/ReportParserBase.php')
| -rw-r--r-- | app/Report/ReportParserBase.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Report/ReportParserBase.php b/app/Report/ReportParserBase.php index b6cadfca4e..324dead3df 100644 --- a/app/Report/ReportParserBase.php +++ b/app/Report/ReportParserBase.php @@ -15,6 +15,8 @@ */ namespace Fisharebest\Webtrees\Report; +use Fisharebest\Webtrees\Tree; + /** * Class ReportParserBase */ @@ -28,11 +30,12 @@ class ReportParserBase { /** * Create a parser for a report * - * @param string $report The XML filename + * @param string $report The XML filename * @param ReportBase $report_root * @param string[][] $vars + * @param Tree $tree */ - public function __construct($report, ReportBase $report_root = null, $vars = []) { + public function __construct($report, ReportBase $report_root, $vars, Tree $tree) { $this->xml_parser = xml_parser_create(); xml_parser_set_option($this->xml_parser, XML_OPTION_CASE_FOLDING, false); xml_set_element_handler($this->xml_parser, [$this, 'startElement'], [$this, 'endElement']); |
