|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* webtrees: online genealogy |
|
5
|
|
|
* Copyright (C) 2021 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
|
|
|
|
|
18
|
|
|
declare(strict_types=1); |
|
19
|
|
|
|
|
20
|
|
|
namespace Fisharebest\Webtrees\Elements; |
|
21
|
|
|
|
|
22
|
|
|
use Fisharebest\Webtrees\I18N; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* CERTAINTY_ASSESSMENT := {Size=1:1} |
|
26
|
|
|
* [0|1|2|3] |
|
27
|
|
|
* The QUAY tag's value conveys the submitter's quantitative evaluation of the |
|
28
|
|
|
* credibility of a piece of information, based upon its supporting evidence. |
|
29
|
|
|
* Some systems use this feature to rank multiple conflicting opinions for |
|
30
|
|
|
* display of most likely information first. It is not intended to eliminate |
|
31
|
|
|
* the receiver's need to evaluate the evidence for themselves. |
|
32
|
|
|
* 0 = Unreliable evidence or estimated data |
|
33
|
|
|
* 1 = Questionable reliability of evidence (interviews, census, oral |
|
34
|
|
|
* genealogies, or potential for bias for example, an autobiography) |
|
35
|
|
|
* 2 = Secondary evidence, data officially recorded sometime after event |
|
36
|
|
|
* 3 = Direct and primary evidence used, or by dominance of the evidence |
|
37
|
|
|
*/ |
|
38
|
|
|
class CertaintyAssessment extends AbstractElement |
|
39
|
|
|
{ |
|
40
|
|
|
/** |
|
41
|
|
|
* A list of controlled values for this element |
|
42
|
|
|
* |
|
43
|
|
|
* @return array<int|string,string> |
|
44
|
|
|
*/ |
|
45
|
|
|
public function values(): array |
|
46
|
|
|
{ |
|
47
|
|
|
return [ |
|
48
|
|
|
'' => '', |
|
49
|
|
|
'0' => /* I18N: Quality of source information - GEDCOM tag “QUAY 0” */ I18N::translate('unreliable evidence'), |
|
50
|
|
|
'1' => /* I18N: Quality of source information - GEDCOM tag “QUAY 1” */ I18N::translate('questionable evidence'), |
|
51
|
|
|
'2' => /* I18N: Quality of source information - GEDCOM tag “QUAY 2” */ I18N::translate('secondary evidence'), |
|
52
|
|
|
'3' => /* I18N: Quality of source information - GEDCOM tag “QUAY 3” */ I18N::translate('primary evidence'), |
|
53
|
|
|
]; |
|
54
|
|
|
} |
|
55
|
|
|
} |
|
56
|
|
|
|