This is a widget class that can build and render calendar data in a nicely formated table.
Located in /widgets/CalendarTable.inc (line 60)
Container | --BaseWidget | --CalendarTable
Class | Description |
---|---|
This is a widget class that can build and render calendar data in a nicely formated table. |
The labels to display for the days of the week. The first entry in this array represents Sunday.
The number of days in each month. You're unlikely to want to change this... The first entry in this array represents January.
The labels to display for the months of the year. The first entry in this array represents January.
Number of months per row in the year view. Legal values are 1, 2, 3, 4, 6, and 12.
The start day of the week. This is the day that appears in the first column of the calendar. Sunday = 0.
The start month of the year. This is the month that appears in the first slot of the calendar in the year view. January = 1.
This stores the base path to where the tool link images live. This lets you specify a new path to where your images live.
Name of "Next" button
Path to "Next" button
Name of "Previous" button
Path to "Previous" text
Use buttons or test links to previous and next
Inherited from BaseWidget
BaseWidget::$title
BaseWidget::$width
BaseWidget::$_image_prefix
The constructor
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.
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.
Return the current month view.
Return the current year view.
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.
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.
Calculate the number of days in a month, taking into account leap years.
Generate the Container for a given month
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.
Return a specified month view
Construct the "next" link
Construct the "previous" link
Gets the start day of the week. This is the day that appears in the first column of the calendar. Sunday = 0.
Gets the start month of the year. This is the month that appears first in the year view. January = 1.
Generate the Container for a given year
Return a specified year view.
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.
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.
Sets the numbers of months to show per row in the year view.
Sets the start day of the week. This is the day that appears in the first column of the calendar. Sunday = 0.
Sets the start month of the year. This is the month that appears first in the year view. January = 1.
Set the image path
Set the next image name
Set the previous image name
Use buttons for previous and next links
Use buttons for previous and next links
Inherited From BaseWidget
BaseWidget::get_align()
BaseWidget::get_css()
BaseWidget::get_javascript()
BaseWidget::get_title()
BaseWidget::get_width()
BaseWidget::set_align()
BaseWidget::set_image_path_prefix()
BaseWidget::set_title()
BaseWidget::set_width()
Inherited From Container
Container::Container()
Container::add()
Container::add_reference()
Container::count_content()
Container::get_element()
Container::get_indent_flag()
Container::push()
Container::push_reference()
Container::render()
Container::reset_content()
Container::set_collapse()
Container::set_indent_flag()
Documentation generated on Fri, 28 Jan 2011 08:52:50 -0500 by phpDocumentor 1.4.3