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

Class: Date_Holidays_Driver_Japan

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

Class Overview

Date_Holidays_Driver
   |
   --Date_Holidays_Driver_Japan

class that calculates Japanese holidays


Author(s):

Version:

  • CVS: $Id$

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

__construct (Constructor)   [line 132]

Date_Holidays_Driver_Japan __construct( )

Constructor

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

  • Access: public

[ Top ]

addCompiledTranslationFile   [line 644]

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

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

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