xref: /webtrees/app/Elements/EventOrFactClassification.php (revision e873f434551745f888937263ff89e80db3b0f785)
1<?php
2
3/**
4 * webtrees: online genealogy
5 * Copyright (C) 2023 webtrees development team
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18declare(strict_types=1);
19
20namespace Fisharebest\Webtrees\Elements;
21
22/**
23 * EVENT_OR_FACT_CLASSIFICATION := {Size=1:90}
24 * A descriptive word or phrase used to further classify the parent event or
25 * attribute tag. This should be used whenever either of the generic EVEN or
26 * FACT tags are used. The value of this primitive is responsible for
27 * classifying the generic event or fact being cited. For example, if the
28 * attribute being defined was one of the persons skills, such as woodworking,
29 * the FACT tag would have the value of `Woodworking', followed by a
30 * subordinate TYPE tag with the value `Skills.'
31 * 1 FACT Woodworking
32 * 2 TYPE Skills
33 * This groups the fact into a generic skills attribute, and in particular this
34 * entry records the fact that this individual possessed the skill of
35 * woodworking. Using the subordinate TYPE tag classification method with any
36 * of the other defined event tags provides a further classification of the
37 * parent tag but does not change the basic meaning of the parent tag. For
38 * example, a MARR tag could be subordinated with a TYPE tag with an
39 * EVENT_DESCRIPTOR value of `Common Law.'
40 * 1 MARR
41 * 2 TYPE Common Law
42 * This classifies the entry as a common law marriage but the event is still a
43 * marriage event. Other descriptor values might include, for example,
44 * `stillborn' as a qualifier to BIRTh or `Tribal Custom' as a qualifier to
45 * MARRiage.
46 */
47class EventOrFactClassification extends AbstractElement
48{
49    protected const int MAXIMUM_LENGTH = 90;
50}
51