Date_Holidays
[ class tree: Date_Holidays ] [ index: Date_Holidays ] [ all elements ]

Class: Date_Holidays_Filter_Whitelist

Source Location: /Date_Holidays-0.21.8/Date/Holidays/Filter/Whitelist.php

Class Overview

Date_Holidays_Filter
   |
   --Date_Holidays_Filter_Whitelist

Class that represents a filter which has knowledge about the holidays that driver-calculations are limited to.


Author(s):

Version:

  • CVS: $Id$

Methods


Inherited Variables

Inherited Methods

Class: Date_Holidays_Filter

Date_Holidays_Filter::__construct()
Constructor.
Date_Holidays_Filter::Date_Holidays_Filter()
Constructor.
Date_Holidays_Filter::accept()
Lets the filter decide whether a holiday shall be processed or not.
Date_Holidays_Filter::getFilteredHolidays()
Returns the internal names of holidays that are subject to the filter.
Date_Holidays_Filter::setFilteredHolidays()
Sets the internal names of holidays that are subject to the filter.

Class Details

[line 38]
Class that represents a filter which has knowledge about the holidays that driver-calculations are limited to.


[ Top ]


Method Detail

Date_Holidays_Filter_Whitelist (Constructor)   [line 60]

void Date_Holidays_Filter_Whitelist( array $holidays)

Constructor.

Parameters:

array   $holidays     numerical array containing internal names of holidays

[ Top ]

__construct (Constructor)   [line 48]

Date_Holidays_Filter_Whitelist __construct( array $holidays)

Constructor.

Creates a filter which has knowledge about the holidays that driver-calculations are limited to.


Overrides Date_Holidays_Filter::__construct() (Constructor.)

Parameters:

array   $holidays     numerical array containing internal names of holidays

[ Top ]

accept   [line 72]

boolean accept( string $holiday)

Lets the filter decide whether a holiday shall be processed or not.
  • Return: true, if a holidays shall be processed, false otherwise

Overrides Date_Holidays_Filter::accept() (Lets the filter decide whether a holiday shall be processed or not.)

Parameters:

string   $holiday     a holidays' internal name

[ Top ]


Documentation generated on Tue, 22 Jan 2013 01:00:09 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.