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

Source for file Genealogy_Individual.php

Documentation is available at Genealogy_Individual.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_Individual.php,v 1.2 2003/01/04 11:54:56 mj Exp $
  20. //
  21.  
  22. /* TODO
  23.   bapteme
  24. */
  25.  
  26. /**
  27.  * Genealogy_Individual
  28.  *
  29.  * Purpose:
  30.  *
  31.  *
  32.  *
  33.  * Contributors:
  34.  *
  35.  * @author   Olivier Vanhoucke <olivier@php.net>
  36.  * @version  $Revision: 1.2 $
  37.  * @package  Genealogy_Gedcom
  38.  * @access   public
  39.  */
  40.  
  41.     /**
  42.      * Identifier
  43.      *
  44.      * @var    string 
  45.      * @access public
  46.      */
  47.     var $Identifier   = '';
  48.  
  49.     /**
  50.      * Lastname
  51.      *
  52.      * @var    string 
  53.      * @access public
  54.      */
  55.     var $Lastname     = '';
  56.  
  57.     /**
  58.      * Firstname
  59.      *
  60.      * @var    string 
  61.      * @access public
  62.      */
  63.     var $Firstname    = '';
  64.  
  65.     /**
  66.      * Nickname
  67.      *
  68.      * @var    string 
  69.      * @access public
  70.      */
  71.     var $Nickname     = '';
  72.  
  73.     /**
  74.      * Title
  75.      *
  76.      * @var    string 
  77.      * @access public
  78.      */
  79.     var $Title        = '';
  80.  
  81.     /**
  82.      * Birth
  83.      *
  84.      * @var    array 
  85.      * @access public
  86.      */
  87.     var $Birth  = array('Date'   => '',
  88.                         'Place'  => '',
  89.                         'Source' => '',
  90.                         'Note'   => ''
  91.                         );
  92.  
  93.     /**
  94.      * Death
  95.      *
  96.      * @var    array 
  97.      * @access public
  98.      */
  99.     var $Death  = array('Date'   => '',
  100.                         'Place'  => '',
  101.                         'Source' => '',
  102.                         'Note'   => ''
  103.                         );
  104.  
  105.     /**
  106.      * First communion
  107.      *
  108.      * @var    array 
  109.      * @access public
  110.      */
  111.     var $FirstCommunion  = array('Date'   => '',
  112.                                  'Place'  => '',
  113.                                  'Source' => '',
  114.                                  'Note'   => ''
  115.                                  );
  116.  
  117.     /**
  118.      * Sex
  119.      *
  120.      * @var    string 
  121.      * @access public
  122.      */
  123.     var $Sex          = '';
  124.  
  125.     /**
  126.      * Occupation
  127.      *
  128.      * @var    string 
  129.      * @access public
  130.      */
  131.     var $Occupation   = '';
  132.  
  133.     /**
  134.      * Source
  135.      *
  136.      * @var    string 
  137.      * @access public
  138.      */
  139.     var $Source       = '';
  140.  
  141.     /**
  142.      * Object
  143.      *
  144.      * @var    string 
  145.      * @access public
  146.      */
  147.     var $Object       = '';
  148.  
  149.     /**
  150.      * Family spouse
  151.      *
  152.      * @var    string 
  153.      * @access public
  154.      */
  155.     var $FamilySpouse = array();
  156.  
  157.     /**
  158.      * Family child
  159.      *
  160.      * @var    string 
  161.      * @access public
  162.      */
  163.     var $FamilyChild  = '';
  164.  
  165.     /**
  166.      * Nationality
  167.      *
  168.      * @var    string 
  169.      * @access public
  170.      */
  171.     var $Nationality  = '';
  172.  
  173.     /**
  174.      * Burial
  175.      *
  176.      * @var    array 
  177.      * @access public
  178.      */
  179.     var $Burial       = array('Date'   => '',
  180.                               'Place'  => ''
  181.                               );
  182.  
  183.     /**
  184.      * Note
  185.      *
  186.      * @var    string 
  187.      * @access public
  188.      */
  189.     var $Note         = '';
  190.  
  191.     /**
  192.      * Constructor
  193.      *
  194.      * Creates a new Genealogy_Individual Object
  195.      *
  196.      * @access public
  197.      * @param  array 
  198.      * @return object Genealogy_Individual 
  199.      */
  200.     function Genealogy_Individual($arg{
  201.         $this->Identifier               = $arg[0];
  202.         $this->Lastname                 = $arg[1];
  203.         $this->Firstname                = $arg[2];
  204.         $this->Nickname                 = $arg[3];
  205.         $this->Title                    = $arg[4];
  206.         $this->Birth['Date']            $arg[5];
  207.         $this->Birth['Place']           $arg[6];
  208.         $this->Birth['Source']          $arg[7];
  209.         $this->Birth['Note']            $arg[8];
  210.         $this->Death['Date']            $arg[9];
  211.         $this->Death['Place']           $arg[10];
  212.         $this->Death['Source']          $arg[11];
  213.         $this->Death['Note']            $arg[12];
  214.         $this->Sex                      = $arg[13];
  215.         $this->Occupation               = $arg[14];
  216.         $this->Source                   = $arg[15];
  217.         $this->Object                   = $arg[16];
  218.         $this->FamilySpouse             = $arg[17];
  219.         $this->FamilyChild              = $arg[18];
  220.         $this->Nationality              = $arg[19];
  221.         $this->FirstCommunion['Date']   $arg[20];
  222.         $this->FirstCommunion['Place']  $arg[21];
  223.         $this->FirstCommunion['Source'$arg[22];
  224.         $this->FirstCommunion['Note']   $arg[23];
  225.         $this->Burial['Date']           $arg[24];
  226.         $this->Burial['Place']          $arg[25];
  227.         $this->Note                     = $arg[26];
  228.     }
  229. }
  230. ?>

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