Source for file Austria.php
Documentation is available at Austria.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
* Driver for holidays in Austria
* Copyright (c) 1997-2008 The PHP Group
* This source file is subject to version 3.0 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/3_01.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.
* @author Stephan Schmidt <schst@php-tools.net>
* @author Carsten Lucke <luckec@tool-garage.de>
* @license http://www.php.net/license/3_01.txt PHP License 3.0.1
* @link http://pear.php.net/package/Date_Holidays
* Requires Christian driver
require_once 'Date/Holidays/Driver/Christian.php';
* class that calculates Austrian holidays
* @author Klemens Ullmann <klemens@ull.at>
* @license http://www.php.net/license/3_01.txt PHP License 3.0.1
* @link http://pear.php.net/package/Date_Holidays
* Use the Date_Holidays::factory() method to construct an object of a certain
* Build the internal arrays that contain data about the calculated holidays
* @return boolean true on success, otherwise a PEAR_ErrorStack object
* @throws object PEAR_ErrorStack
$this->_addHoliday ('newYearsDay', $this->_year . '-01-01', 'Neujahr');
$this->_addTranslationForHoliday ('newYearsDay', 'en_EN', 'New Year\'s Day');
$this->_addTranslationForHoliday ('epiphany', 'en_EN', 'Epiphany');
$this->_addTranslationForHoliday ('valentinesDay', 'en_EN', 'Valentines Day');
$easterDate = Date_Holidays_Driver_Christian ::calcEaster ($this->_year);
$this->_addHoliday ('easter', $easterDate, 'Ostersonntag');
$this->_addTranslationForHoliday ('easter', 'en_EN', 'Easter');
$ashWednesday = $this->_addDays ($easterDate, -46 );
$this->_addHoliday ('ashWednesday', $ashWednesday, 'Aschermittwoch');
$this->_addTranslationForHoliday ('ashWednesday', 'en_EN', 'Ash Wednesday');
$palmSunday = $this->_addDays ($easterDate, -7 );
$this->_addHoliday ('palmSunday', $palmSunday, 'Palmsonntag');
$this->_addTranslationForHoliday ('palmSunday', 'en_EN', 'Palm Sunday');
$maundyThursday = $this->_addDays ($easterDate, -3 );
$this->_addHoliday ('maundyThursday', $maundyThursday, 'Gründonnerstag');
$this->_addTranslationForHoliday (
$goodFriday = $this->_addDays ($easterDate, -2 );
$this->_addHoliday ('goodFriday', $goodFriday, 'Karfreitag');
$this->_addTranslationForHoliday ('goodFriday', 'en_EN', 'Good Friday');
$this->_addHoliday ('easterMonday', $easterDate->getNextDay (), 'Ostermontag');
$this->_addTranslationForHoliday ('easterMonday', 'en_EN', 'Easter Monday');
'dayOfWork', $this->_year . '-05-01',
'Staatsfeiertag Österreich'
$this->_addTranslationForHoliday ('dayOfWork', 'en_EN', 'Day of Work');
$this->_addHoliday ('saintFlorian', $this->_year . '-05-04', 'St. Florian');
$this->_addTranslationForHoliday ('saintFlorian', 'en_EN', 'St. Florian');
$mothersDay = $this->_calcFirstMonday ("05");
$mothersDay = $mothersDay->getPrevDay ();
$mothersDay = $this->_addDays ($mothersDay, 7 );
$this->_addHoliday ('mothersDay', $mothersDay, 'Muttertag');
$this->_addTranslationForHoliday ('mothersDay', 'en_EN', 'Mothers Day');
$ascensionDate = $this->_addDays ($easterDate, 39 );
$this->_addHoliday ('ascensionDate', $ascensionDate, 'Christi Himmelfahrt');
$this->_addTranslationForHoliday ('ascensionDate', 'en_EN', 'Ascension Day');
* Whitsun (determines Whit Monday, Ascension Day and
* Feast of Corpus Christi)
$whitsunDate = $this->_addDays ($easterDate, 49 );
$this->_addHoliday ('whitsun', $whitsunDate, 'Pfingstsonntag');
$this->_addTranslationForHoliday ('whitsun', 'en_EN', 'Whitsun');
$whitsunDate->getNextDay (),
$this->_addTranslationForHoliday ('whitMonday', 'en_EN', 'Whit Monday');
$corpusChristi = $this->_addDays ($easterDate, 60 );
$this->_addHoliday ('corpusChristi', $corpusChristi, 'Fronleichnam');
$this->_addTranslationForHoliday ('corpusChristi', 'en_EN', 'Corpus Christi');
$fathersDay = $this->_calcFirstMonday ("06");
$fathersDay = $fathersDay->getPrevDay ();
$fathersDay = $this->_addDays ($fathersDay, 7 );
$this->_addTranslationForHoliday ('fathersDay', 'en_EN', 'Fathers Day');
$this->_addTranslationForHoliday (
* Österreichischer Nationalfeiertag
'Österreichischer Nationalfeiertag'
$this->_addTranslationForHoliday (
'Österreichischer Nationalfeiertag'
$this->_addTranslationForHoliday ('allSaintsDay', 'en_EN', 'All Saints Day');
$this->_addTranslationForHoliday ('allSoulsDay', 'en_EN', 'All Souls Day');
$this->_addTranslationForHoliday ('santasDay', 'en_EN', 'St. Nikolaus');
'immaculateConceptionDay',
$this->_addTranslationForHoliday (
'immaculateConceptionDay',
'Immaculate Conception Day'
* Sunday in commemoration of the dead (sundayIcotd)
$sundayIcotd = $this->_calcFirstMonday (12 );
$sundayIcotd = $this->_addDays ($this->_calcFirstMonday (12 ), -8 );
$this->_addTranslationForHoliday (
'Sunday in commemoration of the dead'
$firstAdv = new Date ($this->_year . '-12-03');
$dayOfWeek = $firstAdv->getDayOfWeek ();
$firstAdv = $this->_addDays ($firstAdv, - $dayOfWeek);
$this->_addTranslationForHoliday ('firstAdvent', 'en_EN', '1. Advent');
$secondAdv = $this->_addDays ($firstAdv, 7 );
$this->_addTranslationForHoliday ('secondAdvent', 'en_EN', '2. Advent');
$thirdAdv = $this->_addDays ($firstAdv, 14 );
$this->_addTranslationForHoliday ('thirdAdvent', 'en_EN', '3. Advent');
$fourthAdv = $this->_addDays ($firstAdv, 21 );
$this->_addTranslationForHoliday ('fourthAdvent', 'en_EN', '4. Advent');
$this->_addTranslationForHoliday ('christmasEve', 'en_EN', 'Christmas Eve');
$this->_addTranslationForHoliday ('christmasDay', 'en_EN', 'Christmas Day');
$this->_addTranslationForHoliday ('boxingDay', 'en_EN', 'Boxing Day');
$this->_addTranslationForHoliday ('newYearsEve', 'en_EN', 'New Years Eve');
if (Date_Holidays ::errorsOccurred ()) {
return Date_Holidays ::getErrorStack ();
* Method that returns an array containing the ISO3166 codes that may possibly
* @return array possible ISO3166 codes
Documentation generated on Sat, 02 Feb 2013 01:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|