Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
calendar_functions.inc.php File Reference

Namespaces

namespace  studip_core

Functions

 wday ($tmstamp="", $mode="LONG", $day_german="")
 ldate ($tmstamp)
 holiday ($tmstamp, $mod="")
 check_date ($month, $day, $year, $hour=0, $min=0)
 day_diff ($ts_1, $ts_2)
 get_day_name ($day)
 check_singledate ($day, $month, $year, $start_hour, $start_minute, $end_hour, $end_minute)

Function Documentation

check_date (   $month,
  $day,
  $year,
  $hour = 0,
  $min = 0 
)
check_singledate (   $day,
  $month,
  $year,
  $start_hour,
  $start_minute,
  $end_hour,
  $end_minute 
)

checks values that shall become a single date with start- and endtime

Parameters
string$day
string$month
string$year
string$start_hour
string$start_minute
string$end_hour
string$end_minute
Returns
bool true if date is valid, false otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

day_diff (   $ts_1,
  $ts_2 
)
get_day_name (   $day)

Useful function to return the name of the n-th day. Note that the first day's is 1 not 0. Thus "monday" is "1" and "sunday" is "7"!

Parameters
intthe index of the day
Returns
string the name of the day
holiday (   $tmstamp,
  $mod = "" 
)
ldate (   $tmstamp)

Here is the call graph for this function:

wday (   $tmstamp = "",
  $mode = "LONG",
  $day_german = "" 
)