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

Source for file Official.php

Documentation is available at Official.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. /**
  4.  * Filter for Official holidays in Austria.
  5.  *
  6.  * PHP Version 5
  7.  *
  8.  * Copyright (c) 1997-2008 The PHP Group
  9.  *
  10.  * This source file is subject to version 3.0 of the PHP license,
  11.  * that is bundled with this package in the file LICENSE, and is
  12.  * available at through the world-wide-web at
  13.  * http://www.php.net/license/3_01.txt.
  14.  * If you did not receive a copy of the PHP license and are unable to
  15.  * obtain it through the world-wide-web, please send a note to
  16.  * license@php.net so we can mail you a copy immediately.
  17.  *
  18.  * @category Date
  19.  * @package  Date_Holidays
  20.  * @author   Ken Guest <kguest@php.net>
  21.  * @license  http://www.php.net/license/3_01.txt PHP License 3.0.1
  22.  * @version  CVS: $Id$
  23.  * @link     http://pear.php.net/package/Date_Holidays
  24.  */
  25.  
  26. /**
  27.  * Filter that only accepts official Austria holidays.
  28.  * By Karin Seifert-Lorenz; based on Ireland/Official.php by Ken Guest.
  29.  *
  30.  * @category   Date
  31.  * @package    Date_Holidays
  32.  * @subpackage Filter
  33.  * @author     Ken Guest <ken.guest@linux.ie>
  34.  * @license    http://www.php.net/license/3_01.txt PHP License 3.0.1
  35.  * @version    CVS: $Id$
  36.  * @link       http://pear.php.net/package/Date_Holidays
  37.  */
  38. class Date_Holidays_Filter_Austria_Official extends Date_Holidays_Filter_Whitelist
  39. {
  40.     /**
  41.      * Constructor.
  42.      *
  43.      */
  44.     function __construct()
  45.     {
  46.         parent::__construct(array('newYearsDay',
  47.                                   'epiphany',
  48.                                   'easterMonday',
  49.                                   'dayOfWork',
  50.                                   'ascensionDate',
  51.                                   'whitsun',
  52.                                   'corpusChristi',
  53.                                   'mariaAscension',
  54.                                   'nationalDayAustria',
  55.                                   'allSaintsDay',
  56.                                   'immaculateConceptionDay',
  57.                                   'christmasDay',
  58.                                   'boxingDay'));
  59.     }
  60.  
  61.     /**
  62.      * Constructor.
  63.      *
  64.      * Only accepts official Austria public holidays as described on
  65.      * https://www.bmf.gv.at/Finanzministerium/GesetzlicheFeiertag_4523/_start.htm/
  66.      *
  67.      * @link https://www.bmf.gv.at/Finanzministerium/GesetzlicheFeiertag_4523/_start.htm/
  68.      */
  69.     {
  70.         $this->__construct();
  71.     }
  72. }
  73. ?>

Documentation generated on Sat, 02 Feb 2013 01:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.