Source for file Composite.php
Documentation is available at Composite.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
define('DATE_HOLIDAYS_FILTER_NOT_FOUND', 200 );
* Class that acts like a single filter but actually is a compound of
* an arbitrary number of filters.
* @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
* Lets the filter decide whether a holiday shall be processed or not.
* @param string $holiday a holidays' internal name
* @return boolean true, if a holidays shall be processed, false otherwise
if ($this->_filters[$fId]->accept ($holiday)) {
* Add a filter to the compound.
* @param Date_Holidays_Filter $filter filter object
* @return boolean true on success, false otherwise
if (! is_a($filter, 'Date_Holidays_Filter')) {
$this->_filters[$id] = $filter;
* Remove a filter from the compound.
* @param Date_Holidays_Filter $filter filter object
* @return boolean true on success, otherwise a PEAR_Error object
* @throws PEAR_Error DATE_HOLIDAYS_FILTER_NOT_FOUND
if (! is_a($filter, 'Date_Holidays_Filter')) {
if (! isset ($this->_filters[$id])) {
unset ($this->_drivers[$id]);
Documentation generated on Tue, 22 Jan 2013 01:00:07 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|