Stud.IP  5.4
dates.inc.php File Reference

Functions

 getWeekday ($day_num, $short=TRUE)
 
 getWeekdays ($short=true)
 
 getMonthName ($month, $short=true)
 
 leadingZero ($num)
 
 veranstaltung_beginn ($seminar_id='', $return_mode='')
 
 veranstaltung_beginn_from_metadata ($reg_irreg, $sem_begin, $start_woche, $start_termin, $turnus_data, $return_mode='int')
 
 shrink_dates ($dates)
 
 vorbesprechung ($seminar_id, $type='standard')
 
 get_sem_name ($time)
 
 get_sem_num ($time)
 
 get_sem_num_sem_browse ()
 
 get_semester ($seminar_id)
 
 delete_date ($termin_id, $topic_delete=TRUE, $folder_move=TRUE, $sem_id=0)
 
 delete_range_of_dates ($range_id, $topics=FALSE)
 
 isSchedule ($sem_id, $presence_dates_only=TRUE, $clearcache=FALSE)
 
 isMetadateCorrespondingDate ($termin_id, $begin='', $end='', $seminar_id='')
 
 getPresenceTypeClause ()
 
 getPresenceTypes ()
 
 getFormattedRooms ($rooms, $link=false)
 
 getPlainRooms ($rooms)
 

Function Documentation

◆ delete_date()

delete_date (   $termin_id,
  $topic_delete = TRUE,
  $folder_move = TRUE,
  $sem_id = 0 
)

◆ delete_range_of_dates()

delete_range_of_dates (   $range_id,
  $topics = FALSE 
)

◆ get_sem_name()

get_sem_name (   $time)

◆ get_sem_num()

get_sem_num (   $time)

◆ get_sem_num_sem_browse()

get_sem_num_sem_browse ( )

◆ get_semester()

get_semester (   $seminar_id)

Die Funktion get_semester gibt den oder die Semester einer speziellen Veranstaltung aus.

◆ getFormattedRooms()

getFormattedRooms (   $rooms,
  $link = false 
)

Return an array of room snippets, possibly linked

Parameters
array$roomsan associative array of rooms
bool$htmltrue if you want links, otherwise false
Returns
array an array of (formatted) room snippets

◆ getMonthName()

getMonthName (   $month,
  $short = true 
)

getMonthName returns the localized name of a certain month in either the abbreviated form (default) or as the actual name.

Parameters
int$monthMonth number
bool$shortDisplay the abbreviated version or the actual name of the month (defaults to abbreviated)
Returns
String Month name
Exceptions
Exceptionwhen passed an invalid month number

◆ getPlainRooms()

getPlainRooms (   $rooms)

Return an array of room snippets without any formatting

Parameters
array$roomsan associative array of rooms
Returns
array an array of room snippets

◆ getPresenceTypeClause()

getPresenceTypeClause ( )

a small helper funktion to get the type query for "Sitzungstermine" (this dates are important to get the regularly, presence dates for a seminar

Returns
string the SQL-clause to select only the "Sitzungstermine"

◆ getPresenceTypes()

getPresenceTypes ( )

◆ getWeekday()

getWeekday (   $day_num,
  $short = TRUE 
)

◆ getWeekdays()

getWeekdays (   $short = true)

Returns an array with strings of all weekdays, starting on monday.

Parameters
bool$shortIf this parameter is set to true, a short version of the day is returned. Defaults to true.

◆ isMetadateCorrespondingDate()

isMetadateCorrespondingDate (   $termin_id,
  $begin = '',
  $end = '',
  $seminar_id = '' 
)

this functions checks, if a date corresponds with a metadate

Parameters
stringtermin_id
Returns
boolean TRUE, if the date corresponds to a metadate

◆ isSchedule()

isSchedule (   $sem_id,
  $presence_dates_only = TRUE,
  $clearcache = FALSE 
)

◆ leadingZero()

leadingZero (   $num)

◆ shrink_dates()

shrink_dates (   $dates)

◆ veranstaltung_beginn()

veranstaltung_beginn (   $seminar_id = '',
  $return_mode = '' 
)

◆ veranstaltung_beginn_from_metadata()

veranstaltung_beginn_from_metadata (   $reg_irreg,
  $sem_begin,
  $start_woche,
  $start_termin,
  $turnus_data,
  $return_mode = 'int' 
)

◆ vorbesprechung()

vorbesprechung (   $seminar_id,
  $type = 'standard' 
)