xref: /webtrees/app/Elements/FamilyEvent.php (revision d11be7027e34e3121be11cc025421873364403f9)
15d2c6313SGreg Roach<?php
25d2c6313SGreg Roach
35d2c6313SGreg Roach/**
45d2c6313SGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
65d2c6313SGreg Roach * This program is free software: you can redistribute it and/or modify
75d2c6313SGreg Roach * it under the terms of the GNU General Public License as published by
85d2c6313SGreg Roach * the Free Software Foundation, either version 3 of the License, or
95d2c6313SGreg Roach * (at your option) any later version.
105d2c6313SGreg Roach * This program is distributed in the hope that it will be useful,
115d2c6313SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
125d2c6313SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
135d2c6313SGreg Roach * GNU General Public License for more details.
145d2c6313SGreg Roach * You should have received a copy of the GNU General Public License
155d2c6313SGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
165d2c6313SGreg Roach */
175d2c6313SGreg Roach
185d2c6313SGreg Roachdeclare(strict_types=1);
195d2c6313SGreg Roach
205d2c6313SGreg Roachnamespace Fisharebest\Webtrees\Elements;
215d2c6313SGreg Roach
225d2c6313SGreg Roach/**
235d2c6313SGreg Roach * FamilyEvent
245d2c6313SGreg Roach */
255d2c6313SGreg Roachclass FamilyEvent extends AbstractElement
265d2c6313SGreg Roach{
275d2c6313SGreg Roach    protected const MAXIMUM_LENGTH = 90;
285d2c6313SGreg Roach
295d2c6313SGreg Roach    protected const SUBTAGS = [
305d2c6313SGreg Roach        'TYPE'  => '0:1',
315d2c6313SGreg Roach        'DATE'  => '0:1',
325d2c6313SGreg Roach        'HUSB'  => '0:1',
335d2c6313SGreg Roach        'WIFE'  => '0:1',
345d2c6313SGreg Roach        'PLAC'  => '0:1',
355d2c6313SGreg Roach        'ADDR'  => '0:1',
365d2c6313SGreg Roach        'EMAIL' => '0:1:?',
375d2c6313SGreg Roach        'WWW'   => '0:1:?',
385d2c6313SGreg Roach        'PHON'  => '0:1:?',
395d2c6313SGreg Roach        'FAX'   => '0:1:?',
405d2c6313SGreg Roach        'CAUS'  => '0:1',
415d2c6313SGreg Roach        'AGNC'  => '0:1',
425d2c6313SGreg Roach        'RELI'  => '0:1',
435d2c6313SGreg Roach        'NOTE'  => '0:M',
445d2c6313SGreg Roach        'OBJE'  => '0:M',
455d2c6313SGreg Roach        'SOUR'  => '0:M',
465d2c6313SGreg Roach        'RESN'  => '0:1',
475d2c6313SGreg Roach    ];
485d2c6313SGreg Roach}
49