This repository was archived by the owner on Jan 31, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGenealogy_Header.php
More file actions
171 lines (160 loc) · 4.76 KB
/
Genealogy_Header.php
File metadata and controls
171 lines (160 loc) · 4.76 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
/**
* Genealogy_Header
*
* PHP Versions 4 and 5
*
* @category Genealogy
* @package Genealogy_Gedcom
* @author Olivier Vanhoucke <olivier@php.net>
* @license http://www.php.net/license/3_01.txt PHP License 3.0.1
* @version CVS: $Id$
* @link http://pear.php.net/package/Genealogy_Gedcom
*/
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Olivier Vanhoucke <olivier@php.net> |
// +----------------------------------------------------------------------+
//
// $Id$
//
/**
* Genealogy_Header
*
* @category Genealogy
* @package Genealogy_Gedcom
* @author Olivier Vanhoucke <olivier@php.net>
* @license http://www.php.net/license/3_01.txt PHP License 3.0.1
* @version Release: @PACKAGE_VERSION@
* @access public
* @link http://pear.php.net/package/Genealogy_Gedcom
*/
class Genealogy_Header
{
/**
* Contains Gedcom information
*
* @var array
* @access public
*/
var $Gedcom = array('Version' => '',
'Format' => ''
);
/**
* Contains File
*
* @var string
* @access public
*/
var $File = '';
/**
* Contains Copyright
*
* @var string
* @access public
*/
var $Copyright = '';
/**
* Contains date
*
* @var string
* @access public
*/
var $Date = '';
/**
* Contains Character
*
* @var string
* @access public
*/
var $Character = '';
/**
* Contains Object
*
* @var string
* @access public
*/
var $Object = '';
/**
* Contains Language
*
* @var string
* @access public
*/
var $Language = '';
/**
* Contains Submitter
*
* @var array
* @access public
*/
var $Submitter = array('Name' => '',
'Note' => '',
'Address' => '',
'Phone' => ''
);
/**
* Contains the source information
*
* @var array
* @access public
*/
var $Source = array('Name' => '',
'Version' => '',
'Corporate' => '',
'Address' => '',
'Country' => '',
'Phone' => '',
'Data' => ''
);
/**
* Constructor
*
* Creates a new Genealogy_Header Object
*
* @param array $arg Array of arguments
*
* @access public
*
* @return object Genealogy_Header
*/
function Genealogy_Header($arg)
{
$this->Gedcom['Version'] = $arg[0];
$this->Gedcom['Format'] = $arg[1];
$this->Date = $arg[2].' '.$arg[3];
$this->Source['Name'] = $arg[4];
$this->Source['Version'] = $arg[5];
$this->Source['Corporate'] = $arg[6];
$this->Source['Address'] = $arg[7].' '.
$arg[8].' '.
$arg[9].' '.
$arg[10].' '.
$arg[11];
$this->Source['Country'] = $arg[12];
$this->Source['Phone'] = $arg[13];
$this->Source['Data'] = $arg[14];
$this->Object = $arg[15];
$this->Language = $arg[16];
$this->Character = $arg[17];
$this->Copyright = $arg[18];
$this->File = $arg[19];
$this->Submitter['Name'] = $arg[20];
$this->Submitter['Note'] = $arg[21];
$this->Submitter['Address'] = $arg[22];
$this->Submitter['Phone'] = $arg[23];
}
}
?>