|
Stud.IP
2.1 Revision 48548
|
Namespaces | |
| namespace | calendar |
Functions | |
| print_month_events ($month_obj, $max_events, $day_timestamp) | |
| month_up_down (&$month_obj, $day_timestamp, $step, $max_events) | |
Variables | |
| $tooltip = tooltip(_("ein Jahr zurück")) | |
| $weekdays_german = array("MO", "DI", "MI", "DO", "FR", "SA", "SO") | |
| $adow = strftime("%u", $amonth->getStart()) - 1 | |
| $first_day = $amonth->getStart() - $adow * 86400 + 43200 | |
| $cor = 0 | |
| $last_day | |
| for ($i=$first_day, $j=0;$i<=$last_day;$i+=86400, $j++) | |
| month_up_down | ( | & | $month_obj, |
| $day_timestamp, | |||
| $step, | |||
| $max_events | |||
| ) |
Up-/down-navigation if there are more events per day than the given number
private
| object | &$month_obj | instance of DbCalendarMonth |
| int | $day_timestamp | unix timestamp of this day |
| int | $step | the current step |
| int | $max_events | the number of events per step |

| print_month_events | ( | $month_obj, | |
| $max_events, | |||
| $day_timestamp | |||
| ) |
Print a list of events for each day of month
public
| object | $month_obj | instance of DbCalendarMonth |
| int | $max_events | the number of events to print |
| int | $day_timestamp | unix timestamp of the day |

| $adow = strftime("%u", $amonth->getStart()) - 1 |
| $cor = 0 |
| $first_day = $amonth->getStart() - $adow * 86400 + 43200 |
| $last_day |
| $weekdays_german = array("MO", "DI", "MI", "DO", "FR", "SA", "SO") |
| for($i=$first_day, $j=0;$i<=$last_day;$i+=86400, $j++) |