Source for file UNO.php
Documentation is available at UNO.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
* 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 Carsten Lucke <luckec@tool-garage.de>
* @license http://www.php.net/license/3_01.txt PHP License 3.0.1
* @version CVS: $Id: UNO.php,v 1.7 2008/01/26 00:08:35 kguest Exp $
* @link http://pear.php.net/package/Date_Holidays
* Driver-class that calculates UNO (United Nations Organization) holidays
* @author Carsten Lucke <luckec@tool-garage.de>
* @license http://www.php.net/license/3_01.txt PHP License 3.0.1
* @version CVS: $Id: UNO.php,v 1.7 2008/01/26 00:08:35 kguest Exp $
* @link http://pear.php.net/package/Date_Holidays
* Use the Date_Holidays::factory() method to construct an object of a
* 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
* International day of the native tongue
'International Day of the native tongue');
* International Women's Day
'International Women\'s Day');
* International World Consumers' Day
'International World Consumers\' Day');
* International day of the forest
'International day of the forest');
* International day of beating racism
'International day of beating racism');
* World's meteorology day
'World\'s meteorology day');
* World's tuberculosis day
'World\'s tuberculosis day');
* Book and Copyright's Day
'Book and Copyright\'s Day');
* World's day of intellectual property
'World\'s day of intellectual property');
* International day of work
'International day of work');
* International day for freedom of the press
'International day for freedom of the press');
* International Family's Day
'International Family\'s Day');
* World's Telecommunications Day
'World\'s Telecommunications Day');
* International day of cultural development
'International day of cultural development');
* International day of biological diversity
if ($this->_year >= 2001 ) {
'International day of biological diversity');
'International day of biological diversity');
'African Liberation Day');
* International UN Peace Squads' Day
'International UN Peace Squads\' Day');
* World's Nonsmokers' Day
'World\'s Nonsmokers\' Day');
* World's Agriculturalists' Day
'World\'s Agriculturalists\' Day');
* World's Environment Day
'World\'s Environment Day');
'African Children\'s Day');
'World\'s Desert\'s Day');
'African Fugitives\' Day');
* International day against drugs
'International day against drugs');
* International Cooperative Societies' Day
$coopDayDate = new Date ($this->_year . '-07-01');
while ($coopDayDate->getDayOfWeek () != 6 ) {
$coopDayDate = $coopDayDate->getNextDay ();
'International Cooperative Societies\' Day');
'World\'s Population Day');
* International day of indigenous people
'International day of indigenous people');
* International Youth' Day
'International Youth\' Day');
* International day of slave trade's abolishment
'International day of slave trade\'s abolishment');
* World's Alphabetization Day
'World\'s Alphabetization Day');
* Ozone Layer's Protection Day
'Ozone Layer\'s Protection Day');
* International day of peace
$peaceDayDate = new Date ($this->_year . '-09-01');
while ($peaceDayDate->getDayOfWeek () != 2 ) {
$peaceDayDate = $peaceDayDate->getNextDay ();
$peaceDayDate->addSpan (new Date_Span ('14, 0, 0, 0'));
'International day of peace');
'World\'s day of tourism');
* International fugitives' day
'International fugitives\' day');
* International aged people's day
'International aged people\'s day');
* World's day for prevention of cruelty to animals
'World\'s day for prevention of cruelty to animals');
* Beginning of the International Outer Space Week
'Beginning of the International Outer Space Week');
$habitatDayDate = new Date ($this->_year . '-10-01');
while ($habitatDayDate->getDayOfWeek () != 1 ) {
$habitatDayDate = $habitatDayDate->getNextDay ();
$this->_addHoliday('habitatDay', $coopDayDate, 'World\'s Habitat Day');
* International Teachers' Day
'International Teachers\' Day');
* World Post Association's Day
'World Post Association\'s Day');
* World's Nourishment Day
'World\'s Nourishment Day');
* International day for removal of poverty
'International day for removal of poverty');
* World's day of information about evolvement
'World\'s day of information about evolvement');
* Beginning of the Disarmament Week
'Beginning of the Disarmament Week');
* International day against environmental exploitation in wartime
'International day against environmental exploitation in wartime');
* International day of tolerance
'International day of tolerance');
* African Industrialization Day
'African Industrialization Day');
'World\'s Children\'s Day');
'World\'s Television Day');
* International day for removal of violence against women
'International day for removal of violence against women');
* International day of solidarity with Palestinian people
'International day of solidarity with Palestinian people');
* International day for abolishment of slavery
'International day for abolishment of slavery');
* International day for disabled people
'International day for disabled people');
* International evolvement helpers' day
'International evolvement helpers\' day');
* International day of civil aeronautics
'International day of civil aeronautics');
* International day of human rights
'International day of human rights');
* International migrants' day
'International migrants\' day');
Documentation generated on Thu, 10 Apr 2008 20:00:27 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|