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

Source for file PHPdotNet.php

Documentation is available at PHPdotNet.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2002 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.0 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:   Carsten Lucke <luckec@tool-garage.de>                     |
  17. // +----------------------------------------------------------------------+
  18. //
  19. //    $Id: PHPdotNet.php,v 1.3 2005/02/11 13:30:19 luckec Exp $
  20.  
  21. /**
  22.  * Driver-class that calculates the birthdates of the PHP.net people. :)
  23.  *
  24.  * @category    Date
  25.  * @package     Date_Holidays
  26.  * @subpackage  Driver
  27.  * @version     $Id: PHPdotNet.php,v 1.3 2005/02/11 13:30:19 luckec Exp $
  28.  * @author      Carsten Lucke <luckec@tool-garage.de>
  29.  */
  30. {
  31.    /**
  32.     * Constructor
  33.     *
  34.     * Use the Date_Holidays::factory() method to construct an object of a certain driver
  35.     *
  36.     * @access   protected
  37.     */
  38.     function Date_Holidays_Driver_PHPdotNet()
  39.     {
  40.     }
  41.     
  42.    /**
  43.     * Build the internal arrays that contain data about the calculated holidays
  44.     *
  45.     * @access   protected
  46.     * @return   boolean true on success, otherwise a PEAR_ErrorStack object
  47.     * @throws   object PEAR_ErrorStack
  48.     */
  49.     function _buildHolidays()
  50.     {
  51.         $static             = array(
  52.             // Lukas Smith: 5 November 1977, Germany?
  53.             'lsmith'   => array(
  54.                 'date'          => '11-05',
  55.                 'title'         => 'Lukas Smith'
  56.             ),
  57.             // Stephan Schmidt: 12 May 1974, Germany
  58.             'schst'   => array(
  59.                 'date'          => '05-12',
  60.                 'title'         => 'Stephan Schmidt'
  61.             ),
  62.             // Carsten Lucke: 9 September 1980, Germany
  63.             'luckec'   => array(
  64.                 'date'          => '09-09',
  65.                 'title'         => 'Carsten Lucke'
  66.             ),
  67.             // Arnaud Limbourg: 14 March 1976, France
  68.             'arnaud'   => array(
  69.                 'date'          => '03-14',
  70.                 'title'         => 'Arnaud Limbourg'
  71.             ),
  72.             // Sebastian Bergmann: 22 April 1978, Germany
  73.             'sebastian'   => array(
  74.                 'date'          => '04-22',
  75.                 'title'         => 'Sebastian Bergmann'
  76.             ),
  77.             // Akash Mahajan: 20 May 1981, India
  78.             'akash'   => array(
  79.                 'date'          => '05-20',
  80.                 'title'         => 'Akash Mahajan'
  81.             ),
  82.             // Greg Beaver: 2 September 1976, USA
  83.             'cellog'   => array(
  84.                 'date'          => '09-02',
  85.                 'title'         => 'Gregory Beaver'
  86.             ),
  87.             // Ryan King: 31 March 1982, USA
  88.             'ryansking'   => array(
  89.                 'date'          => '03-31',
  90.                 'title'         => 'Ryan King'
  91.             ),
  92.             
  93.             'dufuz'   => array(
  94.                 'date'          => '11-04',
  95.                 'title'         => 
  96.             ),
  97.             // Tobias Schlitt: 19 May 1980, Germany
  98.             'toby'   => array(
  99.                 'date'          => '05-19',
  100.                 'title'         => 'Tobias Schlitt'
  101.             ),
  102.             // Sebastian Mordziol, 7 February 1975
  103.             'argh'   => array(
  104.                 'date'          => '02-07',
  105.                 'title'         => 'Sebastian Mordziol'
  106.             ),
  107.             // Jeroen Steggink: 7 December 1981, Netherlands
  108.             'steggink'   => array(
  109.                 'date'          => '12-07',
  110.                 'title'         => 'Jeroen Steggink'
  111.             ),
  112.             // Dylan Anderson: 21 October 1981, Canada
  113.             'anderson'   => array(
  114.                 'date'          => '10-21',
  115.                 'title'         => 'Dylan Anderson'
  116.             ),
  117.             // James McGlinn: 10 January 1980, New Zealand 
  118.             'mcglinn'   => array(
  119.                 'date'          => '01-10',
  120.                 'title'         => 'James McGlinn'
  121.             ),
  122.             
  123.             'lopez'   => array(
  124.                 'date'          => '07-31',
  125.                 'title'         => 
  126.             )
  127.         );
  128.  
  129.         $this->_addStaticHolidays($static);
  130.         if (Date_Holidays::errorsOccurred()) {
  131.             return Date_Holidays::getErrorStack();
  132.         }
  133.         return true;
  134.     }
  135. }
  136. ?>

Documentation generated on Mon, 11 Mar 2019 15:03:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.