Source for file Holiday.php
Documentation is available at Holiday.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2002 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.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/2_02.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. |
// +----------------------------------------------------------------------+
// | Authors: Carsten Lucke <luckec@tool-garage.de> |
// +----------------------------------------------------------------------+
// $Id: Holiday.php,v 1.4 2005/12/22 21:10:14 luckec Exp $
* Simple class that wraps a holiday's data
* @version $Id: Holiday.php,v 1.4 2005/12/22 21:10:14 luckec Exp $
* @author Carsten Lucke <luckec@tool-garage.de>
* Additional holiday properties like a more detailed description, etc.
* @param string $internalName internal name
* @param string $title title
* @param object Date $date date
* @param array 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 Mon, 11 Mar 2019 15:03:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|