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

Class: Date_Holidays_Driver_Japan

Source Location: /Date_Holidays_Japan-0.1.0/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,v 1.2 2008/08/19 23:06:50 kguest Exp $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 100]
class that calculates Japanese holidays


[ Top ]


Method Detail

Date_Holidays_Driver_Japan (Constructor)   [line 124]

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 630]

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 605]

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 172]

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 135]

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 Mon, 11 Mar 2019 15:25:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.