system/libraries/Calendar.php

Class: Calendar_Core

class Calendar_Core

Calendar creation library.

Calendar_Core -> __construct

public function __construct

Create a new Calendar instance. A month and year can be specified. By default, the current month and year are used.

Parameters:

integer month
(NULL) month number
integer year
(NULL) year number
start_monday
(NULL)

Return: void


Calendar_Core -> events

public function events

Calendar_Core -> weeks

public function weeks

Returns an array for use with a view. The array contains an array for each week. Each week contains 7 arrays, with a day number and status: TRUE if the day is in the month, FALSE if it is padding.

Return: array


Calendar_Core -> render

public function render

Convert the calendar to HTML using the kohana_calendar view.

Return: string


Calendar_Core -> __toString

public function __toString

Magically convert this object to a string, the rendered calendar.

Return: string