[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/data/ -> htmlcalendar.class.php (sommaire)

(pas de description)

Poids: 440 lignes (14 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

Calendar:: (19 méthodes):
  Calendar()
  getDayNames()
  setDayNames()
  getMonthNames()
  setMonthNames()
  getStartDay()
  setStartDay()
  getStartMonth()
  setStartMonth()
  getCalendarLink()
  getDateLink()
  getCurrentMonthView()
  getCurrentYearView()
  getMonthView()
  getYearView()
  getDaysInMonth()
  getMonthHTML()
  getYearHTML()
  adjustDate()


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.
Calendar()   X-Ref
Pas de description

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.

getCurrentMonthView()   X-Ref
Return the HTML for the current month


getCurrentYearView()   X-Ref
Return the HTML for the current year


getMonthView($month, $year)   X-Ref
Return the HTML for a specified month


getYearView($year)   X-Ref
Return the HTML for a specified year


getDaysInMonth($month, $year)   X-Ref
Calculate the number of days in a month, taking into account leap years.


getMonthHTML($m, $y, $showYear = 1, $timestamp = 0)   X-Ref
Generate the HTML for a given month


getYearHTML($year)   X-Ref
Generate the HTML for a given year


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.




Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics