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

Class: Date_Holidays_Holiday

Source Location: /Date_Holidays-0.17.1/Holidays/Holiday.php

Class Overview


Simple class that wraps a holiday's data


Author(s):

Version:

  • $Id: Holiday.php,v 1.4 2005/12/22 21:10:14 luckec Exp $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 29]
Simple class that wraps a holiday's data
  • Author: Carsten Lucke <luckec@tool-garage.de>
  • Version: $Id: Holiday.php,v 1.4 2005/12/22 21:10:14 luckec Exp $


[ Top ]


Method Detail

Date_Holidays_Holiday (Constructor)   [line 72]

Date_Holidays_Holiday Date_Holidays_Holiday( string $internalName, string $title, &$date, array $properties, object Date $date)

Constructor
  • Access: public

Parameters:

string   $internalName   —  internal name
string   $title   —  title
object Date   $date   —  date
array   $properties   —  properties for this holiday
   &$date   — 

[ Top ]

getDate   [line 116]

object Date getDate( )

Returns the date
  • Return: date
  • Access: public

[ Top ]

getInternalName   [line 94]

string getInternalName( )

Returns the internal name
  • Return: internal name
  • Access: public

[ Top ]

getProperties   [line 184]

array getProperties( )

Returns the holidays additional properties that contain information like a more detailed description, etc.
  • Return: associative array with corresponding pairs of propertyName => $propertyValue
  • Access: public

[ Top ]

getTitle   [line 105]

string getTitle( )

Returns the title
  • Return: title
  • Access: public

[ Top ]

setDate   [line 149]

void setDate( object Date &$date)

Set the date
  • Access: public

Parameters:

object Date   &$date   —  date

[ Top ]

setInternalName   [line 127]

void setInternalName( string $internalName)

Set the internal name
  • Access: public

Parameters:

string   $internalName   —  internal name

[ Top ]

setTitle   [line 138]

void setTitle( string $title)

Set the title
  • Access: public

Parameters:

string   $title   —  title

[ Top ]

toArray   [line 169]

array toArray( )

Returns the holiday data as an array.

Format:

   array(
       'internalName'  => 'easter'
       'title'         => 'Easter Sunday'
       'date'          => Object of type Date
   )

  • Return: holiday-data
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:03:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.