Class: Date_Holidays_Driver_Composite
Source Location: /Date_Holidays-0.17.1/Holidays/Driver/Composite.php
Date_Holidays_Driver
|
--Date_Holidays_Driver_Composite
Composite driver - you can use this one to combine two or more drivers
Author(s):
Version:
- $Id: Composite.php,v 1.8 2006/04/01 17:15:31 schst Exp $
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Method Detail
Date_Holidays_Driver_Composite (Constructor) [line 62]
Date_Holidays_Driver_Composite Date_Holidays_Driver_Composite(
)
|
|
Constructor Use the Date_Holidays::factory() method to construct an object of a certain driver
addDriver [line 84]
getHoliday [line 151]
Returns the specified holiday Return format: array(
'title' => 'Easter Sunday'
'date' => '2004-04-11'
)
Overrides Date_Holidays_Driver::getHoliday() (Returns the specified holiday)
Parameters:
getHolidayDate [line 175]
getHolidayDates [line 199]
Returns dates of all holidays or those accepted by the specified filter.
Overrides Date_Holidays_Driver::getHolidayDates() (Returns dates of all holidays or those accepted by the applied filter.)
Parameters:
getHolidayForDate [line 290]
object object getHolidayForDate(
mixed
$date, [string
$locale = null], [boolean
$multiple = false])
|
|
Returns the title of the holiday, if any was found, matching the specified date. Normally the method will return the title/data for the first holiday matching the date. If you want the mthod to continue searching holidays for the specified date, set the 4th param to true If multiple holidays match your date, the return value will be an array of the titles/data. array(
array(
'title' => 'New Year',
'date' => Object of type Date
),
array(
'title' => 'Circumcision of Jesus',
'date' => Object of type Date
)
)
Overrides Date_Holidays_Driver::getHolidayForDate() (Returns a
object, if any was found, matching the specified date.)
Parameters:
getHolidays [line 344]
Returns all holidays that were found Return format: array(
'easter' => array(
'title' => 'Easter Sunday'
'date' => '2004-04-11'
),
'eastermonday' => array(
'title' => 'Easter Monday'
'date' => '2004-04-12'
),
...
)
Overrides Date_Holidays_Driver::getHolidays() (Returns all holidays that the driver knows.)
Parameters:
getHolidayTitle [line 406]
string getHolidayTitle(
string
$internalName, [string
$locale = null])
|
|
Returns localized title for a holiday
Overrides Date_Holidays_Driver::getHolidayTitle() (Returns localized title for a holiday)
Parameters:
getHolidayTitles [line 431]
Returns localized titles of all holidays or those specififed in $restrict array
Overrides Date_Holidays_Driver::getHolidayTitles() (Returns localized titles of all holidays or those accepted by the filter)
Parameters:
getYear [line 491]
Using this method doesn't affect anything. If you have been able to add your driver to this compound, you should also be able to directly execute this action. This method is only available to keep abstraction working.
Overrides Date_Holidays_Driver::getYear() (Returns the driver's current year)
isHoliday [line 531]
Determines whether a date represents a holiday or not. The method searches all added drivers for this date, to determine whether it's a holiday.
Overrides Date_Holidays_Driver::isHoliday() (Determines whether a date represents a holiday or not)
Parameters:
removeDriver [line 107]
setLocale [line 550]
Using this method doesn't affect anything. If you have bben able to add your driver to this compound, you should also be able to directly execute this action. This method is only available to keep abstraction working.
Overrides Date_Holidays_Driver::setLocale() (Sets the driver's locale)
Parameters:
setYear [line 505]
boolean setYear(
int
$year)
|
|
This (re)sets the year of every driver-object in the compound. Note that this will cause every attached driver to recalculate the holidays!
Overrides Date_Holidays_Driver::setYear() (Sets the driver's current year)
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:03:06 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|