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

Class: Date_Holidays_Holiday

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

Class Overview


Simple class that wraps a holiday's data


Author(s):

Version:

  • $Id: Holiday.php,v 1.6 2004/07/30 21:26:55 luckec Exp $

Variables

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.6 2004/07/30 21:26:55 luckec Exp $


[ Top ]


Class Variables

$date =

[line 53]

Date
  • Access: public

Type:   object Date


[ Top ]

$internalName =

[line 37]

Internal name
  • Access: public

Type:   string


[ Top ]

$title =

[line 45]

Title
  • Access: public

Type:   string


[ Top ]



Method Detail

Date_Holidays_Holiday (Constructor)   [line 63]

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

Constructor
  • Access: public

Parameters:

string   $internalName   —  internal name
string   $title   —  title
object Date   $date   —  date
   &$date   — 

[ Top ]

getDate   [line 98]

object Date getDate( )

Returns the date
  • Return: date
  • Access: public

[ Top ]

getInternalName   [line 76]

string getInternalName( )

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

[ Top ]

getTitle   [line 87]

string getTitle( )

Returns the title
  • Return: title
  • Access: public

[ Top ]

setDate   [line 131]

void setDate( object Date &$date)

Set the date
  • Access: public

Parameters:

object Date   &$date   —  date

[ Top ]

setInternalName   [line 109]

void setInternalName( string $internalName)

Set the internal name
  • Access: public

Parameters:

string   $internalName   —  internal name

[ Top ]

setTitle   [line 120]

void setTitle( string $title)

Set the title
  • Access: public

Parameters:

string   $title   —  title

[ Top ]

toArray   [line 151]

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 13:54:58 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.