Calendar
[ class tree: Calendar ] [ index: Calendar ] [ all elements ]

Class: Calendar_Table_Helper

Source Location: Program_Root/Table/Helper.php

Class Overview


Used by Calendar_Month_Weekdays, Calendar_Month_Weeks and Calendar_Week to

Methods


Inherited Variables

Inherited Methods


Class Details

Used by Calendar_Month_Weekdays, Calendar_Month_Weeks and Calendar_Week to

help with building the calendar in tabular form

access:  protected

Class Methods


constructor Calendar_Table_Helper

Constructs Calendar_Table_Helper

Calendar_Table_Helper Calendar_Table_Helper( object Calendar_Month_Weekdays, &$calendar, [int $firstDay = false])

API Tags:

access:  protected

Parameters:

object Calendar_Month_Weekdays,   &$calendar   Calendar_Month_Weeks, Calendar_Week
int   $firstDay   (optional) first day of the week e.g. 1 for Monday

method getDaysOfWeek

Returns the order array of days in a week

int getDaysOfWeek( )

API Tags:

access:  protected

method getEmptyDaysAfter

Returns the index of the last real day in the month

int getEmptyDaysAfter( )

API Tags:

access:  protected
todo:  Potential performance optimization with static

method getEmptyDaysAfterOffset

Returns the index of the last real day in the month, relative to the

beginning of the tabular week it is part of



int getEmptyDaysAfterOffset( )

API Tags:

access:  protected

method getEmptyDaysBefore

Returns the number of empty days before the real days begin

int getEmptyDaysBefore( )

API Tags:

access:  protected

method getFirstDay

Returns the first day of the month

int getFirstDay( )

API Tags:

access:  protected
see:  Calendar_Engine_Interface::getFirstDayOfWeek()

method getNumTableDaysInMonth

Returns the number of real days + empty days

int getNumTableDaysInMonth( )

API Tags:

access:  protected

method getNumWeeks

Returns the number of tabular weeks in a month

int getNumWeeks( )

API Tags:

access:  protected
Released under the PHP license (http://www.php.net/license/3_0.txt)
Documentation generated on Thu, 30 Oct 2003 16:35:59 +0100 by phpDocumentor 1.2.2