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

Class: Calendar_Table_Helper

Source Location: /Calendar-0.5.2/Table/Helper.php

Class Overview


Used by Calendar_Month_Weekdays, Calendar_Month_Weeks and Calendar_Week to


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 33]
Used by Calendar_Month_Weekdays, Calendar_Month_Weeks and Calendar_Week to

help with building the calendar in tabular form

  • Access: protected


[ Top ]


Method Detail

Calendar_Table_Helper (Constructor)   [line 97]

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

Constructs Calendar_Table_Helper
  • 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

[ Top ]

getDaysOfWeek   [line 191]

int getDaysOfWeek( )

Returns the order array of days in a week
  • Access: protected

[ Top ]

getEmptyDaysAfter   [line 232]

int getEmptyDaysAfter( )

Returns the index of the last real day in the month
  • Todo: Potential performance optimization with static
  • Access: protected

[ Top ]

getEmptyDaysAfterOffset   [line 249]

int getEmptyDaysAfterOffset( )

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

beginning of the tabular week it is part of

  • Access: protected

[ Top ]

getEmptyDaysBefore   [line 221]

int getEmptyDaysBefore( )

Returns the number of empty days before the real days begin
  • Access: protected

[ Top ]

getFirstDay   [line 181]

int getFirstDay( )

Returns the first day of the month

[ Top ]

getNumTableDaysInMonth   [line 211]

int getNumTableDaysInMonth( )

Returns the number of real days + empty days
  • Access: protected

[ Top ]

getNumWeeks   [line 201]

int getNumWeeks( )

Returns the number of tabular weeks in a month
  • Access: protected

[ Top ]

getWeekStart   [line 263]

void getWeekStart( $y, $m, $d, [ $firstDay = 1])

Returns the timestamp of the first day of the current week

Parameters:

   $y   — 
   $m   — 
   $d   — 
   $firstDay   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:54:44 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.