[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/calendar/util/ -> CalendarTimeUtil.php (summary)

(no description)

File Size: 89 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  getCalendarEventEpochs()
  getCalendarWeekTimestamps()
  getCalendarWidgetTimestamps()
  getTimestamps()
  getStartDateTimeObjects()

Functions
Functions that are not part of a class:

getCalendarEventEpochs(PhabricatorUser $user,$start_day_str = 'Sunday',$days = 9)   X-Ref
This class is useful for generating various time objects, relative to the
user and their timezone.

For now, the class exposes two sets of static methods for the two main
calendar views - one for the conpherence calendar widget and one for the
user profile calendar view. These have slight differences such as
conpherence showing both a three day "today 'til 2 days from now" *and*
a Sunday -> Saturday list, whilest the profile view shows a more simple
seven day rolling list of events.

getCalendarWeekTimestamps(PhabricatorUser $user)   X-Ref
No description

getCalendarWidgetTimestamps(PhabricatorUser $user)   X-Ref
No description

getTimestamps(PhabricatorUser $user,$start_day_str,$days)   X-Ref
Public for testing purposes only. You should probably use one of the
functions above.


getStartDateTimeObjects(PhabricatorUser $user,$start_day_str)   X-Ref
No description



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1