Genealogy_Gedcom
[ class tree: Genealogy_Gedcom ] [ index: Genealogy_Gedcom ] [ all elements ]

Source for file Genealogy_Header.php

Documentation is available at Genealogy_Header.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2003 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.02 of the PHP license,      |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/2_02.txt.                                 |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Authors: Olivier Vanhoucke <olivier@php.net>                         |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id: Genealogy_Header.php,v 1.2 2003/01/04 11:54:56 mj Exp $
  20. //
  21.  
  22. /**
  23.  * Genealogy_Header
  24.  *
  25.  * Purpose:
  26.  *
  27.  *
  28.  *
  29.  * Contributors:
  30.  *
  31.  * @author   Olivier Vanhoucke <olivier@php.net>
  32.  * @version  $Revision: 1.2 $
  33.  * @package  Genealogy_Gedcom
  34.  * @access   public
  35.  */
  36.  
  37.     /**
  38.      * Contains Gedcom information
  39.      *
  40.      * @var    array 
  41.      * @access public
  42.      */
  43.     var $Gedcom   = array('Version' => '',
  44.                           'Format'  => ''
  45.                           );
  46.  
  47.     /**
  48.      * Contains File
  49.      *
  50.      * @var    string 
  51.      * @access public
  52.      */
  53.     var $File   = '';
  54.  
  55.     /**
  56.      * Contains Copyright
  57.      *
  58.      * @var    string 
  59.      * @access public
  60.      */
  61.     var $Copyright   = '';
  62.  
  63.     /**
  64.      * Contains date
  65.      *
  66.      * @var    string 
  67.      * @access public
  68.      */
  69.     var $Date   = '';
  70.  
  71.     /**
  72.      * Contains Character
  73.      *
  74.      * @var    string 
  75.      * @access public
  76.      */
  77.     var $Character   = '';
  78.  
  79.     /**
  80.      * Contains Object
  81.      *
  82.      * @var    string 
  83.      * @access public
  84.      */
  85.     var $Object   = '';
  86.  
  87.     /**
  88.      * Contains Language
  89.      *
  90.      * @var    string 
  91.      * @access public
  92.      */
  93.     var $Language   = '';
  94.  
  95.     /**
  96.      * Contains Submitter
  97.      *
  98.      * @var    array 
  99.      * @access public
  100.      */
  101.     var $Submitter   = array('Name'    => '',
  102.                              'Note'    => '',
  103.                              'Address' => '',
  104.                              'Phone'   => ''
  105.                              );
  106.  
  107.     /**
  108.      * Contains the source information
  109.      *
  110.      * @var    array 
  111.      * @access public
  112.      */
  113.     var $Source = array('Name'      => '',
  114.                         'Version'   => '',
  115.                         'Corporate' => '',
  116.                         'Address'   => '',
  117.                         'Country'   => '',
  118.                         'Phone'     => '',
  119.                         'Data'      => ''
  120.                         );
  121.  
  122.     /**
  123.      * Constructor
  124.      *
  125.      * Creates a new Genealogy_Header Object
  126.      *
  127.      * @access public
  128.      * @param  array 
  129.      * @return object Genealogy_Header 
  130.      */
  131.     function Genealogy_Header($arg{
  132.         $this->Gedcom['Version']    $arg[0];
  133.         $this->Gedcom['Format']     $arg[1];
  134.         $this->Date                 = $arg[2].' '.$arg[3];
  135.         $this->Source['Name']       $arg[4];
  136.         $this->Source['Version']    $arg[5];
  137.         $this->Source['Corporate']  $arg[6];
  138.         $this->Source['Address']    $arg[7].' '.$arg[8].' '.$arg[9].' '.$arg[10].' '.$arg[11];
  139.         $this->Source['Country']    $arg[12];
  140.         $this->Source['Phone']      $arg[13];
  141.         $this->Source['Data']       $arg[14];
  142.         $this->Object               = $arg[15];
  143.         $this->Language             = $arg[16];
  144.         $this->Character            = $arg[17];
  145.         $this->Copyright            = $arg[18];
  146.         $this->File                 = $arg[19];
  147.         $this->Submitter['Name']    $arg[20];
  148.         $this->Submitter['Note']    $arg[21];
  149.         $this->Submitter['Address'$arg[22];
  150.         $this->Submitter['Phone']   $arg[23];
  151.     }
  152. }
  153. ?>

Documentation generated on Mon, 11 Mar 2019 14:18:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.