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

Class: Date_Holidays_Driver_Japan

Source Location: /Date_Holidays_Japan-0.1.2/Date/Holidays/Driver/Japan.php

Class Overview

Date_Holidays_Driver
   |
   --Date_Holidays_Driver_Japan

class that calculates Japanese holidays


Author(s):

Version:

  • CVS: $Id: Japan.php 277166 2009-03-14 21:31:51Z kguest $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 100]
class that calculates Japanese holidays


[ Top ]


Class Variables

$_driverName =  'Japan'

[line 108]

this driver's name
  • Access: protected

Type:   string


[ Top ]



Method Detail

Date_Holidays_Driver_Japan (Constructor)   [line 132]

Date_Holidays_Driver_Japan Date_Holidays_Driver_Japan( )

Constructor

Use the Date_Holidays::factory() method to construct an object of a certain driver

  • Access: protected

[ Top ]

addCompiledTranslationFile   [line 624]

boolean addCompiledTranslationFile( string $file, string $locale)

Add a compiled language-file's content

The language-file's content will be unserialized and translations, properties, etc. for holidays will be made available with the specified locale.

  • Return: true on success, otherwise a PEAR_ErrorStack object
  • Throws: object PEAR_Errorstack
  • Access: public

Parameters:

string   $file     filename of the compiled language file
string   $locale     locale-code of the translation

[ Top ]

addTranslationFile   [line 599]

boolean addTranslationFile( string $file, string $locale)

Add a language-file's content

The language-file's content will be parsed and translations, properties, etc. for holidays will be made available with the specified locale.

  • Return: true on success, otherwise a PEAR_ErrorStack object
  • Throws: object PEAR_Errorstack
  • Access: public

Parameters:

string   $file     filename of the language file
string   $locale     locale-code of the translation

[ Top ]

getISO3166Codes   [line 180]

array getISO3166Codes( )

Method that returns an array containing the ISO3166 codes that may possibly identify a driver.
  • Return: possible ISO3166 codes
  • Access: public

[ Top ]

_buildHolidays   [line 143]

boolean _buildHolidays( )

Build the internal arrays that contain data about the calculated holidays
  • Return: true on success, otherwise a PEAR_ErrorStack object
  • Throws: object PEAR_ErrorStack
  • Access: protected

[ Top ]


Documentation generated on Tue, 27 Sep 2011 17:30:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.