Source for file Holiday.php
Documentation is available at Holiday.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
* @link http://pear.php.net/package/Date_Holidays
* Simple class that wraps a holiday's data
* @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
* Additional holiday properties like a more detailed description, etc.
* @param string $internalName internal name
* @param string $title title
* @param object &$date date
* @param array $properties properties for this holiday
$this->_internalName = $internalName;
$this->_properties = array ();
if (is_a($date, 'Date')) {
$this->_properties = $properties;
* Returns the internal name
* @return string internal name
return $this->_internalName;
* @return object Date date
* @param string $internalName internal name
$this->_internalName = $internalName;
* @param string $title title
* @param object &$date date
* Returns the holiday data as an array.
* 'internalName' => 'easter'
* 'title' => 'Easter Sunday'
* 'date' => Object of type Date
* @return array holiday-data
$data['internalName'] = $this->_internalName;
$data['title'] = $this->_title;
$data['date'] = $this->_date;
* Returns the holidays additional properties that contain information
* like a more detailed description, etc.
* @return array associative array with corresponding pairs
* of propertyName => $propertyValue
return $this->_properties;
Documentation generated on Tue, 22 Jan 2013 01:00:08 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|