com.lokorin.lokorin.lib
[ class tree: com.lokorin.lokorin.lib ] [ index: com.lokorin.lokorin.lib ] [ all elements ]

Procedural File: lib_calendar.php

Source Location: /_includes/lib_calendar.php



Classes:

Calendar
Describes a calendar that displays a database table as a calendar with
AliasCalendar
Describes a calendar that link to aliases in a ./year/month/day format.


Page Details:

A library that contains functions and classes related to calendars.



Tags:

filesource:  Source Code for this file
license:  GNU Lesser General Public License
version:  $Revision: 1.15 $
author:  Andreas Launila


Includes:

require_once('common.php') [line 18]
For access to common constants and functions.






DATE_CALENDAR_NAV [line 24]

DATE_CALENDAR_NAV = 'F Y'

[ Top ]




convertDayToFirstSecond [line 74]

integer convertDayToFirstSecond( integer $day)

Internal function to convert days to timestamps equal to the first second of the specified day.



Tags:

return:  A unix timestamp representing the first second of a day.
access:  private


Parameters

integer   $day   day The unix time day that should be converted.
[ Top ]



convertDayToLastSecond [line 62]

integer convertDayToLastSecond( integer $day)

Internal function to convert days to timestamps equal to the last second of the specified day.



Tags:

return:  A unix timestamp representing the last second of a day.
access:  private


Parameters

integer   $day   day The unix time day that should be converted.
[ Top ]



getAllMonthNames [line 49]

array getAllMonthNames( )

Gets the names of all the years months.



Tags:

return:  All the months' names in order, starting with January.
access:  private


[ Top ]



getDaysInMonth [line 35]

integer getDaysInMonth( integer $month, integer $year)

Gets the number of days in a specified month.



Tags:

return:  The number of days that occur in the speicified month of the specified year.
access:  private


Parameters

integer   $month   The number of the month of the year, has to be in the range [1, 12].
integer   $year   The four digit representation of the year in question.
[ Top ]



getMonth [line 86]

integer getMonth( integer $day)

Gets the month of the year that a specified day is included in.



Tags:

return:  The months number (1-12).
access:  private


Parameters

integer   $day   The day, as an unix timestamp converted into days, that represents the day for which the month should be retrieved.
[ Top ]



getYear [line 98]

integer getYear( integer $day)

Gets the year that a specified day is included in.



Tags:

return:  The year (four digits).
access:  private


Parameters

integer   $day   The day, as an unix timestamp converted into days, that represents the day for which the yearshould be retrieved.
[ Top ]



Documentation generated on Sun, 16 Apr 2006 21:03:10 +0200 by phpDocumentor 1.3.0RC4