Classe: Calendar - X-Ref
\ingroup Data
Generates an html calendar
PHP Calendar Class Version 1.4 (5th March 2001)
Copyright David Wilkinson 2000 - 2001. All Rights reserved.
This software may be used, modified and distributed freely
providing this copyright notice remains intact at the head
of the file.
This software is freeware. The author accepts no liability for
any loss or damages whatsoever incurred directly or indirectly
from the use of this script. The author of this software makes
no claims as to its fitness for any purpose whatsoever. If you
wish to use this software you should first satisfy yourself that
it meets your requirements.
URL: http://www.cascade.org.uk/software/php/calendar/
Email: davidw@cascade.org.uk
Modified by fuze (http://www.fuze.org) on 2004/07/11
Just changed the html table output for better (CSS) accessibility
and variable names.
getDayNames()
X-Ref
|
Get the array of strings used to label the days of the week. This array contains seven
elements, one for each day of the week. The first entry in this array represents Sunday.
|
setDayNames($names)
X-Ref
|
Set the array of strings used to label the days of the week. This array must contain seven
elements, one for each day of the week. The first entry in this array represents Sunday.
|
getMonthNames()
X-Ref
|
Get the array of strings used to label the months of the year. This array contains twelve
elements, one for each month of the year. The first entry in this array represents January.
|
setMonthNames($names)
X-Ref
|
Set the array of strings used to label the months of the year. This array must contain twelve
elements, one for each month of the year. The first entry in this array represents January.
|
getStartDay()
X-Ref
|
Gets the start day of the week. This is the day that appears in the first column
of the calendar. Sunday = 0.
|
setStartDay($day)
X-Ref
|
Sets the start day of the week. This is the day that appears in the first column
of the calendar. Sunday = 0.
|
getStartMonth()
X-Ref
|
Gets the start month of the year. This is the month that appears first in the year
view. January = 1.
|
setStartMonth($month)
X-Ref
|
Sets the start month of the year. This is the month that appears first in the year
view. January = 1.
|
getCalendarLink($month, $year)
X-Ref
|
Return the URL to link to in order to display a calendar for a given month/year.
You must override this method if you want to activate the "forward" and "back"
feature of the calendar.
Note: If you return an empty string from this function, no navigation link will
be displayed. This is the default behaviour.
If the calendar is being displayed in "year" view, $month will be set to zero.
|
getDateLink($day, $month, $year)
X-Ref
|
Return the URL to link to for a given date.
You must override this method if you want to activate the date linking
feature of the calendar.
Note: If you return an empty string from this function, no navigation link will
be displayed. This is the default behaviour.
|
adjustDate($month, $year)
X-Ref
|
Adjust dates to allow months > 12 and < 0. Just adjust the years appropriately.
e.g. Month 14 of the year 2001 is actually month 2 of year 2002.
|