Calendar Class Reference

Inheritance diagram for Calendar:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 buildCalendar ($pDateHash)
 buildCalendarNavigation ($pDateHash)
 buildDay ($pDateHash)
 Calendar ()
 doRangeCalculations ($pDateHash)
 getList ($pListHash)
 prepGetList (&$pListHash)

Public Attributes

 $display_offset

Detailed Description

Definition at line 20 of file Calendar.php.


Member Function Documentation

Calendar::buildCalendar ( pDateHash  ) 

build a two dimensional array of unix timestamps The timestamps are either UTC or display local time depending on the setting of the current users display time offset mktime SHOULD NOT BE USED since it offsets the times based on server timezone and daylight saving, but the USERS daylight saving information is not available, which will cause some problems!

Definition at line 214 of file Calendar.php.

References $cal, $gBitSmarty, $i, and $offset.

Calendar::buildCalendarNavigation ( pDateHash  ) 

build an array of unix UTC timestamps relating to the current calendar focus. This provides a fixed basis from which to apply local offsets provided by tz_offset information. Daylight saving information is not available via this route!

Definition at line 177 of file Calendar.php.

References $gBitSystem, $gBitUser, and $ret.

Calendar::buildDay ( pDateHash  ) 

Definition at line 138 of file Calendar.php.

References $gBitSystem, $gBitUser, $i, and $ret.

Calendar::Calendar (  ) 

Definition at line 24 of file Calendar.php.

References $gBitUser, LibertyContent::getPreference(), and LibertyContent::LibertyContent().

Here is the call graph for this function:

Calendar::doRangeCalculations ( pDateHash  ) 

calculate the start and stop time for the current display page

Definition at line 74 of file Calendar.php.

References $ret.

Referenced by prepGetList().

Calendar::getList ( pListHash  ) 

get a full list of content for a given time period return array of items

The output array will be a set of UTC tagged pages covering the period defined in the $pListHash. Items identified from the list will be tagged to the day identified in the selected timestamp from which the list was built. If the user has selected a local time display, then the day will be the actual UTC day that the item is in, rather than the UTC day of the item. In this way the display view provides a list of locally correct entries for each day.

Definition at line 47 of file Calendar.php.

References $content, $item, $res, $ret, LibertyContent::LibertyContent(), and prepGetList().

Here is the call graph for this function:

Calendar::prepGetList ( &$  pListHash  ) 

prepare ListHash to ensure errorfree usage

Reimplemented from LibertyContent.

Definition at line 126 of file Calendar.php.

References doRangeCalculations().

Referenced by getList().

Here is the call graph for this function:


Member Data Documentation

Calendar::$display_offset

Definition at line 22 of file Calendar.php.


The documentation for this class was generated from the following file:
Generated on Wed Aug 22 19:34:31 2007 for bitweaver by  doxygen 1.5.2