[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/date/date_repeat/ -> date_repeat_calc.inc (summary)

(no description)

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

Defines 6 functions

  _date_repeat_calc()
  date_repeat_adjust_rrule()
  date_repeat_add_dates()
  date_repeat_is_finished()
  date_repeat_set_month_day()
  date_repeat_set_year_day()

Functions
Functions that are not part of a class:

_date_repeat_calc($rrule, $start, $end, $exceptions, $timezone, $additions)   X-Ref
Private implementation of date_repeat_calc().

Compute dates that match the requested rule, within a specified date range.

date_repeat_adjust_rrule($rrule, $start_date)   X-Ref
See if the RRULE needs some imputed values added to it.


date_repeat_add_dates(&$days, $current_day, $start_date, $end_date, $exceptions, $rrule)   X-Ref
Helper function to add found date to the $dates array.

Check that the date to be added is between the start and end date
and that it is not in the $exceptions, nor already in the $days array,
and that it meets other criteria in the RRULE.

date_repeat_is_finished($current_day, $days, $count, $end_date)   X-Ref
Stop when $current_day is greater than $end_date or $count is reached.


date_repeat_set_month_day($date_in, $day, $count = 1, $direction = '+', $timezone = 'UTC', $modify_time)   X-Ref
Set a date object to a specific day of the month.

Example,
date_set_month_day($date, 'Sunday', 2, '-')
will reset $date to the second to last Sunday in the month.
If $day is empty, will set to the number of days from the
beginning or end of the month.

date_repeat_set_year_day($date_in, $day, $count = 1, $direction = '+', $timezone = 'UTC', $modify_time)   X-Ref
Set a date object to a specific day of the year.

Example,
date_set_year_day($date, 'Sunday', 2, '-')
will reset $date to the second to last Sunday in the year.
If $day is empty, will set to the number of days from the
beginning or end of the year.



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7